I have seen this and it has been a pain tracking it down to fix. On OS X check under preferences->Keyboard->Text->… and uncheck Correct Text Automatically to see if it stops.
Eduardo Rolón AIA NCARB AC27 US/INT -> AC08
Macbook Pro M1 Max 64GB ram, OS X 10.XX latest another Moderator