Solution
This is a
known issue #614154 . If you attempt to rename a shared variable that has a special characters in its name, the name will revert to its previous name when the project is reopened. This issue will occur too when you use Chinese characters in a shared variable's name.
Kindly make sure no special characters are used in shared variable name so this issue can be avoided.