Absolute horseshit. No, racism is not strong pattern recognition. It is lazy pattern substitution.
It is what happens when someone confuses prejudice for intelligence, fear for instinct, and tribal insecurity for wisdom. Actual pattern recognition means distinguishing evidence from noise, individuals from stereotypes, and reality from the cartoon version of the world your amygdala coughs up when it sees people who look different.
Danger recognition is noticing real threats. Racism is inventing threats based on skin colour, ethnicity, or origin because your brain cannot handle complexity without collapsing into caveman sorting categories.
Civilisation was not built by people screaming at strangers over ancestry charts. It was built through cooperation, trade, migration, law, science, cities, mixed societies, and people learning to live beyond the tiny little tribe their great-grandfather happened to be born into.
The rootedness versus nomadism line is just pseudo-philosophical perfume sprayed over the same rotten rubbish. You are not more rooted because you hate outsiders. You are just more frightened. Real rootedness is culture, language, family, memory, responsibility, and contribution. Racism is none of that. Racism is insecurity pretending to be heritage.
It is intellectual laziness, emotional fragility, and moral cowardice dressed up as evolutionary insight by people desperate to make their fear sound profound.
Racism is connected to strong pattern recognition, danger recognition, self preservation, survival instinct and sense of belonging/rootedness as opposed to nomadism.