Microsoft finally baked in some spell checking functionality in a Visual Studio 2022 preview, but it's off to a rough start judging from many developer complaints about its initial implementation.
If Microsoft Word's spell check isn't working, make sure the correct language is selected in Options. Also ensure that "Check spelling as you type" is enabled and there isn't a spell check exception ...