It is bug with cache in Logseq. You need to change the inserted block in order to reset the cache. Add space, comma or any char to any place.
Another way is to use 🏛 Full House Templatesplugin:
Note: I’ve add «+» before template name to turn on template-including-parent mode, which is false by default with the plugin. You can explicitly add template-including-parent:: true property to template itself to avoid this or re-organize template by moving it’s content to child block.