The general way to accomplish something like that is to adjust the spelling_selector
setting to tell it that it should not spell check certain things.
In this case, that would require that the syntax definition for Latex applies a specific scope to that text that you could use to adjust the setting.
I don’t use LaTeX myself, so I don’t know if that’s the case or not. One way to tell would be if the syntax highlighting can/does highlight that text differently than surrounding text; you can also put the cursor in it and use Tools > Developer > Show Scope Name
and see if there’s anything in the listed scope that would distinguish that text from the surrounding text.