I ran into this issue earlier today. I was copy and pasting code from my VSC to Teams and when I did that the Code that got pasted into Teams had all the underscores in words removed.
It created great confusion in the team as to why my code ran in VSC and theirs didnt.
Also, sometimes when im use the format feature it deleted the last little bit of a SQL query out.
It is very strange. Anyone else experience this?