If it’s in a code block it’s not a problem. If your can make sure it’s always in a code block, you’re in good shape. You’ve got to run a real parser to know when you’re in a code block, though.
Oh, or turn off the Allow users to mention other users setting while you import the data.