Script to create Joplin tags from #tags in the note text?

If somebody had written a script, it would be in the #apps category.

See also How to get Joplin to apply Tags from a Bear Notes import?
I'm afraid you would have to write such a script yourself.