Just tested this on our image and it worked. You might want to check if 22 is the correct number. On newer images this is not always the case. Run on linux console
cat /sys/kernel/debug/gpio
to see the numbers you need to use. Especially for pi 5 I know there is a difference. On bookworm with pi 4 I have it is identical to BCM numbering without offset.
Eventually it is an old error. Make a change and save and it might init then. the export file is where you write which pins you want to control. Are you on our image or an official pi image?