Can you try something for me?
It's seeing the @variable in your TSQL and thinking it is a user mention. After you get the error, can you try putting that into formatted text? If that works I'll see about updating the posting guidelines. If not, I'll file a bug.