It could be the forum messing with your quotes, but you can’t use “fancy” quotes with Templater. They need to be "straight". I’d double check that.
<% tp.date.now("Do MMMM YYYY") %>
Running the command Templater: Open Insert Template modal in a note → choosing the template with the above code in it → outputs 22nd June 2023 for me.
Have a look here on how to present your code in the forum.