Hi Van, What you describe is fragile and should not work.
OTOH, we need to provide a way to edit those curly braces. I have just pushed commit 102832e66 to the master branch. That will cause any sub/superscript under the point to have its font lock properties removed, so that the braces will become visible for editing. It is modeled after a similar feature in emacs built-in prettify-symbols-mode. So, I think that should address your usecase. Thanks for raising the issue. -- Aaron Ecay