This issue also exists with (so called) "smart" quotes.
Which, the iOS keyboard “helpfully” uses for you.
Especially when you're sending some quick scratch code in a slack message.