Did you search to know if setget keyword is supported the way you use it in the version of Godot you are using for this project ?
I found this which could be an answer, some beta version of Godot 4 may have broke the feature a bit.
Always give Godot version (+hardware/OS) in order to be helped, there are so much changes between versions !