Your '\n' already works. It's just the grid which does not display the line break. Using the mouse you can see the linebreak in the tooltip:
![Description](/uploads/paste/2-2022-11-19_11-05-29.png)
Note the linebreak is also there if you export or copy the values. It's really just the grid itself which does not display these.