Not sure what to tell you. It works flawlessly on the latest build from today (25.05 (8fc822a6)). This is probably largely the same as this Anki 25.05 Beta 1, so maybe try with the latest beta?
I tested with debian linux (sid).
The template looks fine as well.