Ok, I believe this is due to browser partially caching files from a previous version. I think hard reloading the page should fix it.
https://github.com/godotengine/godot/issues/27168
Thanks, this time it worked! I don’t know why it would have affected another browser too, but now everything works as intended and the save is even preserved.