The left-leaning Working Families Party is going to war with the Democratic Party by endorsing three female insurgents in primaries against three male Democratic state Senators — Jeff Klein of The Bronx, Jose Peralta of Queens and David Valesky in central New York.

All three incumbents are members of the Independent Democratic Caucus, which is allied with Senate Republicans.

The WFP is backing Allessandra Biaggi against Klein, former Mayor de Blasio aide Jessica Ramos against Peralta and Syracuse University professor Rachel May against Valesky.

It wasn’t lost on Albany politicos that the WFP is running three women against three men amid the #MeToo campaign against sexual harassment.

“We are proud to support three great progressive women reformers,” said Bill Lipton, the party’s state director.

The move comes even though Cuomo brokered a truce that was supposed to unify the Democratic Party factions and end the eight-member IDC’s alliance with the GOP.

It raises questions as to whether the WFP will back Cuomo’s re-election as it did in his last two campaigns.

“The IDC is a breakaway conference of State Senators who were elected as Democrats but who have formed an alliance with Trump Republicans in the State Senate, preventing progress for all of us for years,” the WFP’s Ava Benezra said in announcing the endorsements.

“The IDC-Republican alliance hurts New Yorkers every day. That’s why we’re going all in to elect Rachel, Alessandra, and Jessica and other candidates like them who will stand for working families in Albany, not the 1%.”

The insurgencies will be uphill battles. Klein, the head of the IDC, has $2 million in his campaign account and is popular in his district.

Biaggi is a big name in The Bronx. Her grandfather, former Bronx Congressman Mario Biaggi, was a celebrated police officer and politician before getting convicted in a corruption case. He died in 2015.

Candice Giove, a spokesman for Klein and the IDC, slammed the WFP as “corrupt.”

“Since its creation in 1998 the Working Families Party has become a travesty whose objective is to destroy the Democratic Party for its sole political interests. What used to be a champion of Working Families has become a corrupt political enterprise. The Independent Democratic Conference is happy to put its record of accomplishments — a $15 minimum wage, a $10 million dollar immigrant legal defense fund and the strongest paid family leave program in the nation — against the do nothing Working Families Party,” she said.