<human>:  Is there a way to refer to the entire matched expression in re.sub without the use of a group?
<bot>:', '\\\\\\g<0>', line))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.