Greetings to everyone.
I was looking for a solution for a long time for this problem.
I made an extension for the dynamic meta tags.
Please give me any feedback, thank you.
You should add a namespace so that it's compatiable with PSR-4.
I'd also do some HTML escaping in there, just in case someone passes in "> or whatever.