AI has nothing to do with this. It’s trivial to build a keyword based system to detect someone threatening/joking that they will kill all the Mexicans at their school.
AI hype is at play here as well, not only in the breathless press releases from AI companies.