I think some suttas in the Brāhmaṇa Vagga of the Majjhima Nikaya are also show the non-Buddhist nature of identity politics; where the Brahmans believed there was special virtue or status based on identity (birth):

Good Gotama, brahmans speak thus: ‘Only brahmans form the best caste, all other castes are low; only brahmans form the fair caste, all other castes are dark; only brahmans are pure, not non-brahmans; only brahmans are own sons of Brahmā, born of his mouth, born of Brahmā, formed by Brahmā, heirs to Brahmā.’ What does the good Gotama say about this?”

retrofuturist wrote:#7. Insight about the fallacious nature of identity, and by extension, identity politics.
...
Anyway, they're the insights that come to mind immediately, but if there are more factors that come to mind I will be happy to share them.

A noble disciple who is endowed with the vision of the truth gains the fruit of right comprehension (abhisamaya ). If the common folk has wrong view, that has its basis in identity view (sakkāyadiṭṭhi ), accumulates through identity view, arises through identity view, and emerges through identity view. That is, being covered by and experiencing worry and sorrow, they [still] celebrate and cher­ish it, call it a self, call it a living being, call it out­standing, special, and hold it to be superior.

“In this way this multitude of wrongness has all been completely given up and eradicated, removed at its root; like a plantain tree it will not arise again in the future.

Identity politics, also called identitarian politics, refers to political positions based on the interests and perspectives of social groups with which people identify. Identity politics includes the ways in which people's politics are shaped by aspects of their identity through loosely correlated social organizations. Examples include social organizations based on age, religion, social class or caste, culture, dialect, disability, education, ethnicity, language, nationality, sex, gender identity, generation, occupation, profession, race, political party affiliation, sexual orientation, settlement, urban and rural habitation, and veteran status. Not all members of any given group are involved in identity politics. Identity politics are used by minority and civil rights organizations to form a coalition with members of the majority.

Identity politics, also called identitarian politics, refers to political positions based on the interests and perspectives of social groups with which people identify. Identity politics includes the ways in which people's politics are shaped by aspects of their identity through loosely correlated social organizations. Examples include social organizations based on age, religion, social class or caste, culture, dialect, disability, education, ethnicity, language, nationality, sex, gender identity, generation, occupation, profession, race, political party affiliation, sexual orientation, settlement, urban and rural habitation, and veteran status. Not all members of any given group are involved in identity politics. Identity politics are used by minority and civil rights organizations to form a coalition with members of the majority.

The idea that identity view (sakkāyadiṭṭhi) is reserved for those of a certain political leaning is bazaar

Not exclusively reserved for bizarre ideologies, but Wrong View (identity ideology, rooted in self-view) leads to Wrong Thought (I making, the "I am" conceit, craving) and what the Buddha calls a "multitude of wrongness".

The idea that identity view (sakkāyadiṭṭhi) is reserved for those of a certain political leaning is bazaar

Not exclusively reserved for bizarre ideologies, but Wrong View (identity ideology, rooted in self-view) leads to Wrong Thought (I making, the "I am" conceit, craving) and what the Buddha calls a "multitude of wrongness".

Metta,
Paul.

And this "multitude of wrongness" is shared by all who are not noble disciple's.

What percentage of right wingers, trump supporters, capitalists, libertarians etc. have broken free of identity view? How many would even see it as a problem?