A sergeant with a history of accusing the department of racist policing is now under internal NYPD investigation — for allegedly giving a domestic violence suspect a slide for being black, law enforcement sources told The Post.

“Brother, we have to stop putting people like you and me in jail — don’t make me regret this,” Sgt. Edwin Raymond allegedly told the suspect in quashing an arrest in Brooklyn last month, the sources said.

Raymond and other officers from Brooklyn’s Police Service Area 2, which covers public housing, had been called to Brownsville Houses on Sept. 10, after a woman reported her ex was lurking around outside her building, despite an order of protection.

Arriving cops approached the man for questioning and confirmed through their smartphones that he had an active protection order. Then Raymond allegedly cut him loose — and put it over the radio as “No crime,” the sources said.

More than a half-dozen cops complained to Internal Affairs about the incident and were called into Housing Borough Investigations in Brooklyn this week to describe what they witnessed. Raymond’s driver was also called in by the unit for questioning, the sources said.

News of the investigation angered the Brownsville Houses woman, who told The Post Wednesday night that her ex is continuing to harass her.

“Any other sergeant would’ve gotten him in a week,” said the woman, who asked her name not be used.

Usually, cops arrest her ex and let him out the next day — but this time, he wasn’t even arrested, she complained.

“I don’t understand. They let them walk the streets when I have an order of protection and he has a warrant out,” she added.

“Yesterday he called me and said, if you come outside I’m gonna bust you in your head. .. He says he’s going to put me in the trunk and time’s up. Who wants to hear that?”

The ex is a violent man who has 29 arrests, most of them sealed, according to sources — including assaults and a grand larceny.

Raymond is the founder of Cops For Kaepernick and was the lead plaintiff out of 12 Black and Latino cops who sued the NYPD in 2012, claiming the department harassed and punished them for speaking out against arrest quotas that target minorities.

“We MUST get rid of the draconian practices being disguised as legitimate police work,” he posted on Instagram two weeks ago.

An NYPD spokesperson confirmed that Raymond is under investigation, but declined to comment.

Additional reporting by Laura Italiano