Would this be sufficient?
Formula in B1:
B1
=LET(s,TEXTSPLIT(A1,,CHAR(10)),TEXTJOIN(CHAR(10),,SEQUENCE(ROWS(s))&". "&s))