* lisp/textmodes/tex-mode.el (tex-thingatpt-exclude-chars): Remove variable. (tex-thingatpt--beginning-of-symbol, tex-thingatpt--end-of-symbol): Use hard-coded characters instead of variable. (Bug#53749)