probably quite hard to debug.
with plain text, double escaping does work
\'
within php code, four escapes sometimes work (and sometimes not)
$string = 'I\\\\'m glad you are looking into that one';
oops, it's messing up the syntax highlighting 🙁
however, editing a post until you finally got all the backslashes into it can be quite hard.