Newline in friendly name

i am using two script to get a page with wedding dates and birthdays.
The first script is for creating sensors with the dates/days: https://github.com/mf-social/ps-date-countdown

The second is to auto fill and sort a entitie card:

The only ‘problem’ I have is that the first script only has the option to display the friendly name with the years, but not the date. I can adapt the python script but I cannot get a new line character to work in the friendly name.

eg The friendly name of a sensor is now
Marnix (dd/mm/yyyy - xx years)

What i would llike is
Marnix
dd/mm/yyyy - xx year

I tried \n and \r in de python script but that doesn;t work. Is it possible to get a friendly name over two lines ?