Hi Jon,
I have just installed PsychoPy 2022.1.1 in Ubuntu 21.10, created a new experiment with just a mouse component and could not save it.
Replacing the _experiment.py by the one edited by @marco.tettamanti solved the problem for me.
Is there any way I could help?
Best regards,
Flavio