Same issue here. I installed 22.04 very recently. I followed https://fostips.com/share-folder-ubuntu-21-04-fix-net-share-error-255/, but it is not working.
Each time I try to share the folder /home/m/pubblici
I get the same error:
net usershare add: share name /home/m/pubblici contains invalid characters (any of %<>*?|/+=;:",)
It happens the same with other folders too, for example when I try t share /home/m/musica
I get:
net usershare add: share name /home/m/musica contains invalid characters (any of %<>*?|/+=;:",)
Any suggestion, please? Thanks.