Nearly two dozen St. Louis police officers have been added to a list of officers banned from bringing cases to the city circuit attorney’s office — after a national research project accused them of making racist and anti-Muslim social media posts.

Twenty-two officers were flagged during the project — seven of whom are now “permanently banned” by city Circuit Attorney Kimberly Gardner’s office, the St. Louis Post-Dispatch reported.

That means Gardner’s office won’t issue charges based on their investigations, won’t apply for search warrants on their behalf and won’t review cases that involve them as essential witnesses, according to a Tuesday letter Gardner sent to local Police Chief John Hayden and public safety director Jimmie Edwards, obtained by the Post-Dispatch.

As for the other 15 cops, Gardner’s office will review their work “to determine conditions and reinstatement of their ability to present cases,” circuit attorney spokeswoman Susan Ryan said in a statement obtained by the paper.

A study by the Philadelphia-based Plain View project, unveiled earlier this month, examined Facebook posts by current and former officers in St. Louis and seven other jurisdictions across the country, according to the report.

The posts — which Mayor Lyda Krewson called “disturbing and unacceptable” — surfaced during the study.

By Tuesday, Gardner said in a statement obtained by the paper, her office had done an “extensive review” of the posts.

“Police integrity is at the core of the community’s confidence in the criminal justice system,” she wrote. “When a police officer’s integrity is compromised in this manner, it compromises the entire criminal justice system and our overall ability to pursue justice.”

“After careful examination of the underlying bias contained in those social media posts, we have concluded that this bias would likely influence an officer’s ability to perform his or her duties in an unbiased manner,” Gardner added.

Gardner’s announcement was sharply criticized by Jeff Roorda, business manager for the St. Louis Police Officers’ Association.

“If these officers are determined to have engaged in misconduct, we have a process,” Roorda told the paper. “There’s no due process in what Kim Gardner did today. It’s just panic at the disco.”

Late last summer, Gardner added 28 other officers to the exclusion list. Some were listed because they asserted their Fifth Amendment right against self-incrimination in cases where Gardner’s office was both reviewing an officer’s conduct in a police-involved shooting and pursuing charges against the person shot, the paper reported at the time.

It wasn’t clear why others were on the list.