Nobody’s sleeping with the enemy these days.

“If I see somebody who’s like, ‘I’m moderate or conservative,’ I keep swiping,” Bronx resident Nadine Anglesey tells The Post. The 33-year-old art director hasn’t dated a conservative since the 2016 election — even if she’s attracted to him. “Yesterday, this one guy [on the dating app Hinge] seemed really great ’til I saw he marked himself as conservative,” she says. “I nipped that in the bud.”

Anglesey’s not alone: Whether red or blue, most millennials would pick their party over the best lay of their life, according to new research.

The number of millennial men and women who prioritize political party alliance over good sex has skyrocketed since 2016, according to data from OkCupid. The matchmaking company surveyed more than 8 million users, and found that interest in dating someone with similar political beliefs has gone up 165 percent since 2004, while having good sex has decreased as a priority 30 percent.

Specifically, between 2016 and 2018, the number of women who consider politics more important than sex shot up from 27 percent to 42 percent, while for men that needle moved from 23 percent to 30 percent.

So what’s the link? Manhattan sex therapist Megan Fleming thinks dating strictly within one’s party is making people comfortable — too comfortable.

“If you’re only exposing yourself to people who think like you, you’re living in a silo and missing out on opportunities,” says Fleming. She believes that less intellectual tension could translate to less of a lustful spark in a relationship. She encourages her patients to get out of their comfort zone — in love and in bed.

That was the case for Julie, a 27-year-old Brooklyn liberal and senior public relations manager who dated a Republican for three years. For the political opposites, Julie says, “Everything was very extreme” — including the sex. After particularly frustrating, politically charged conversations, “We’d have makeup sex” that was “better than normal,” she says.

It wasn’t enough to hold them together, and today Julie — who declined to give her last name for privacy reasons — finds going out with fellow liberals “a breath of fresh air.” But she misses the adventure of being with someone very different from herself. “[We] enjoyed being challenged and challenging each other, and maybe that’s something I’m still looking for,” she says. She’s currently single and open to being with a conservative again, depending on “his beliefs.”

That’s also true on the other side of the aisle. Adam Bandler, a 22-year-old Republican, says a date’s political beliefs are barely even an issue for him. “I don’t really care how someone politically identifies,” says the single NYU student, adding that “political ideology” isn’t something he “necessarily even considers” in a potential mate.

That open-mindedness could pay off. Just ask Jen Winston, from Williamsburg, who says her most memorable time in the sack was with someone whose politics she deemed “disgusting.”

“The best sex I’ve ever had was with a guy who I’m fairly sure was a Republican,” says the 30-year-old Democrat. “If I had known he was a Republican, I probably would not have engaged. But if I had known how good the sex was gonna be, I probably would have gone through with it still.”

Winston, who runs a feminist Instagram account called @girlpowersupply, isn’t beating herself up over the party-line transgression. After all, “Sex for pleasure is a form of self-care,” she says.

Celebrities who share a bed but not a ballot

It’s possible to make a relationship work across the ideological aisle. Here are three politically dissenting couples who have managed to find common ground.