Bobby Flay’s ex-wife Stephanie March has been consoling Manhattan personal trainer Jennifer Giamo — after Giamo’s husband filed for divorce and ended up in the arms of celebrity chef Giada De Laurentiis.

Flay was once rumored to be romantically linked to De Laurentiis, although both chefs denied any relationship. Giamo’s TV producer husband Shane Farley produced a pilot two years ago starring De Laurentiis and Flay. He filed for divorce in March and is now dating De Laurentiis — which Giamo learned from tabloid reports in November when De Laurentiis revealed she had a new boyfriend.

De Laurentiis’ reps have insisted she only began dating Farley months after he’d filed for divorce. But March and Giamo were having a teary “bitchfest” about their exes last week, a spy said, even talking about whether De Laurentiis could be dragged into the court battle.

Bobby Flay and Stephanie March in 2013Getty Images

“Jen was with Stephanie March having high tea at the Gotham Bar at the Peninsula,” said a spy. “They were having a royal bitchfest, and there was lots of advice and tears happening.” The source added: “[They were discussing] Giada having to be brought into court because [she and Shane] were having an affair.”

But Giamo’s lawyer, Barry S. Guaglardi, told Page Six, “My client has elected to take the high road.”

Farley’s attorney, Stuart F. Gartner, said, “The judge has ruled that discovery and depositions are over and it’s time to resolve this matter.”

A source familiar with Giamo said, “Jen’s been reaching out to all Shane’s acquaintances through Facebook. She’s trying to see if Shane started dating Giada while she was still with him.” Page Six previously reported that when Giamo learned of Farley’s relationship with De Laurentiis, she was, “devastated.”

Meanwhile, De Laurentiis finalized her own divorce from Todd Thompson this year. Farley now lives in LA and works on Chrissy Teigen’s daytime show, “FABLife.” March’s and De Laurentiis’ reps didn’t get back to us.