Gcode post-processor can't output semicolon

Since my printer firmware cant handle (bracket comments) and instead requires ; semicolons I tried to add a post-processor script that inserts semicolons before opening brackets. But that turned out to be harder than anticipated;

My first attempt was remap("("->";(") but that failed since the semicolon split it into two. Escaping the semicolon with a backslash worked but had the effect that the backslash was also emitted into the Gcode. I was able to achieve the desired result with regex(r"\(","\\x3b("); but that's kinda convoluted;

The culprit seems to be https://gitlab.com/inkscape/extensions/-/blob/98a18c9ceb7a236b3514ee36f6ceeb32e194f2ec/gcodetools.py#L2230 which probably should be s = re.sub(":#:#:semicolon:#:#:", ";", s) without the backslash.

p.s. Is https://cnc-club.ru/forum/viewtopic.php?f=15&t=1802&p=23811 really the only place this is documented or did I just not find it.