He’s saying #NotMe.

An up-and-coming comic whose career was shredded when the influential improv group Upright Citizens Brigade booted him over rape allegations is now suing the troupe — claiming reverse gender discrimination.

Aaron Glaser, 30, of Long Island, says in his Manhattan federal suit that UCB — co-founded by comics such as Amy Poehler and Horatio Sanz — should be stripped of the federal money it received as part of a small-business loan for believing “hollow and wrongful allegations of sexual misconduct’’ because of its prejudice against men.

“Mr. Glaser firmly believes that there was a gender bias at UCB” — whose mantra is “Believe all women,” his suit says.

Glaser hosted sold-out monthly stand-up shows until he was accused in August 2016 of drugging and raping at least two fellow comics.

He says he never even learned the identity of his accusers. One woman anonymously told the Web site Revelist that they had drinks together and then she woke up in his apartment having nonconsensual sex.

When Jasmine Pierce, a writer for “The Tonight Show Starring Jimmy Fallon,’’ called Glaser a “rapist’’ on social media in August 2016, he slapped her with a $38 million lawsuit. He dropped that suit in September, telling Jezebel.com that he ran out of money.

The comic says he performed with UCB for nearly 10 years — until he was called into a meeting at its Midtown offices on Aug. 12, 2016. There, UCB Directors Shannon O’Neill and Alex Sidtis said, “In the past, people felt as though you have raped them,’’ Glaser claims in court papers.

O’Neill had “labeled Mr. Glaser a ‘privileged white man’ and decided that he must be guilty because he looks like other people who have been guilty of crimes in the past,” the suit says.

Glaser wasn’t questioned as part of the “sham investigation,’’ yet “somehow, I’ve been convicted of a very, very serious crime by what is literally a clown college,” he told The Post.

The comic says his ouster caused him to have a “mental breakdown.” Since then, Glaser also has “been unable to secure any comedy opportunities, and his employment prospects are close to nonexistent,” his lawyer, Mark Shirian, adds in the suit.

Glaser thinks a recent “SNL” sketch about a deodorant for “men who are feeling the heat because their #TimesUp’’ is even a reference to him.

“I’m a punch line,” Glaser glowered.

Reps for UCB, O’Neill and Sidtis did not respond to requests for comment.