Cannot use the same \label after it has been used

Steps to reproduce

$$e=mc^2 \label{eq0}$$
works fine. However, if you edit anything under this label, e.g. change it to:
$$E=mc^2 \label{eq0}$$
It will cause an error in the preview.

Environment

• Operating system: Windows 10
• Obsidian version: v0.12.15

If I change the name of the label to another one that I have never used, it will solve the problem. It’s just I can never use any label after I have used it once. Even using ctrl+z cannot change this back.
1. Change $$e=mc^2 \label{eq0}$$ to $$=mc^2 \label{eq0}$$ (delete ‘e’)
2. Change $$=mc^2 \label{eq0}$$ to $$e=mc^2 \label{eq0}$$ (adding ‘e’ back)