I believe this will not work reliably (for properties added to the page that you do not edit, at least) because Dynamic variables don’t get properly processed when used in templates #9892
It looks like YU000jp’s logseq plugin default-template to Automatically apply a page template will work (written in response to Extend default template functionality - Feedback / Feature Requests - Logseq.