“Racism” is definitely defined as discrimination because of race. It doesn’t matter that the general twitterverse has decided to misuse a term. (don’t get me started on the now constant incorrect use of “calculus” instead of “calculation”)
The word you’re looking for is “bigot/bigotry”.