Ex-FBI Director James Comey probably could have picked a better way to get his mind off his recent firing by President Trump.

Comey and his wife, Patrice, took in a Saturday matinee performance of “Fun Home” — which tells the story of a “uniquely dysfunctional family” headed by “a volatile, brilliant, enigmatic father,” according to its Web site.

Afterward, the couple met the cast of the Tony Award-winning musical and posed for a backstage photo in Washington, D.C., where “both said they were really emotionally affected by the show,” star Kate Shindle said.

“It’s awfully moving, but I would imagine doubly so at the end of a week like this,” Shindle, a former Miss America, told the New York Times.

“Fun Home” is based on a graphic novel by artist Alison Bechdel, and in 2015 got three stars from The Post during its Broadway run.

Comey was unexpectedly canned on Tuesday amid the FBI’s probe into suspected Russian ties to Trump’s presidential campaign.

The White House initially said Comey was fired over his handling of rival Hillary Clinton’s email scandal, but Trump on Thursday told NBC News: “In fact, when I decided to just do it, I said to myself, I said, ‘You know, this Russia thing with Trump and Russia is a made-up story, it’s an excuse by the Democrats for having lost an election that they should have won.'”

US Attorney General Jeff Sessions on Saturday interviewed eight potential Comey replacements, including New York Court of Appeals Judge Michael Garcia, the former Manhattan US attorney whose investigation of a call-girl ring led to the 2008 resignation of then-Gov. Eliot Spitzer.