As pointed out here, I ended up, by now, using the Roam Highlighter.
Highlighter settings
How it looks once pasted using the clipboard in Logseq
What I didn’t figure out yet is how to get the $TAGS as I have in the Logseq example. I had to manually add the [[ ]], because if you add them within the script, you end up with [[TAG1 TAG2 TAG3]]. I wrote the author, @wirtzdan . I hope he can guide us.