It turns out that this works on windows but not on linux. In fact any change to snippet files on windows have an immediate effect in obsidian for all classes not just those in front matter. However changes to snippet files on linux have no effect until you close and re-open the app.
I am currently storing my files in a google drive folder on a chromebook with that drive shared to linux. I don’t know if this has anything to do with it.