From the latest few patch releases, it is becoming apparent that we should probably leverage AST parsing over Regex to provide these replacements.
Since I am 200% overbooked myself, I can't work on this myself atm. I would love for someone to take on this task. The existing tests should still be valid for passing, and maybe even a few more could be added.
Thank you everyone for contributing to issues and enhancements.