Nineteen years after playing Carrie Bradshaw’s “asshole” ex-boyfriend Jim on “Sex and the City,” Dominic Fumusa has reunited with Sarah Jessica Parker as her “asshole” love interest on the final season of HBO’s “Divorce.”

“I was very excited to be able to do it and I love Sarah,” Fumusa, 49, told Page Six on Thursday. “There’s just such a quintessential New York thing about both of those shows that’s just so fun.”

In a Season 3 episode of HBO’s “Sex and the City,” Miranda (Cynthia Nixon) memorably goes on a date with Carrie’s ex Jim, despite Carrie’s warning that he’s “kind of an asshole.” A confrontational scene at a bar ends with Miranda, realizing Carrie was right, also branding Jim an asshole and telling Carrie, “I can’t believe I fell for that asshole.”

“I remember Sarah was like, ‘People are going to remember this episode,’ and she was right because I’ve done a lot of television since, but for only having been on that one episode, there has been a disproportionate amount of acknowledgment throughout the last 20 years of people going, ‘Oh, hey! You’re Jim the asshole,'” he told us.

Fumusa’s “Divorce” character, Jeremy, the assistant coach of Frances (Parker) and Robert’s (Thomas Haden Church) daughter’s basketball team, also turns out not to be such a great guy. A blowout fight after a game leads to Robert screaming at Jeremy and — no surprise here — calling Jeremy an asshole.

“I don’t think that was a coincidence,” Fumusa laughed. “I’m not going to say 100 percent for sure say that was planned, but something tells me that may have been a nice little Easter egg for those who are paying very close attention.”

A source close to production told Page Six the familiar jab was not intentional, but that Parker was always hoping to find a way to work with Fumusa again.

Fumusa’s wife also appeared in that same episode as a hotel front desk clerk who tries to hook up with Church’s character.

The third season of “Divorce” aired this summer.

In addition to his role on “Divorce,” Fumusa is currently filming “Godfather of Harlem” for Epix, recently starred as former CIA Director George Tenet in “The Report,” and is writing a show he hopes to sell soon.

Maybe 19 years from now, Parker and Fumusa will be back together in a show in which he’s not playing an asshole.