If a formula is written using =, then the editor adds the symbols @# to the input. In math regions, this is used to provide the placeholder for units, in embedded formulas of a writer region, this is not expected, as the math stuff is dead, for display only.
This problem might be related to the changed behaviour of math regions, they also extend further to the right than what is visible.
