I used the ` character to make the editor ignore the code but I can't say for sure if that would work every time.
Honestly I wish the Micro.blog editor would get improved for problems like this, as well as missing obvious stuff like keyboard shortcuts. It's such an important part of using the platform.