=ArrayFormula(transpose(split(transpose(split(substitute(SUBSTITUTE(B4,char(10)&char(10),"|"),char(10),"^"),"|")),"^")))