A-Rod and JLo almost dine at the same restaurant in St. Tropez

They both chartered superyachts in Saint-Tropez this weekend, so it was only a matter of time before exes Jennifer Lopez and Alex Rodriguez nearly crossed paths.

DailyMail.com can exclusively reveal how Jen, 52, narrowly avoided her ex-fiancée Alex, 45, after making separate reservations at the same restaurant – the chic Bagatelle St. Tropez – on the French Riviera.

“JLo made reservations at the same restaurant the same day,” a St. Tropez insider revealed.

“Her assistant came over to make sure everything was okay, and A-Rod was having lunch there. She warned JLo and the reservation was quickly canceled.”

Near miss: JLo would have narrowly avoided running into ARod after canceling her plans to dine at the same restaurant

EXCLUSIVE: Awkward! A-Rod and JLo nearly dine at the same restaurant in St. Tropez… before singer ‘quickly canceled her reservation’ to avoid reunion

Fortunately, Jen avoided seeing her ex Alex dining out with blonde sports host Melanie Collins, who was dressed in a very revealing black ensemble.

Jen enjoyed a romantic getaway with longtime boyfriend Ben Affleck this weekend, and the couple was photographed together enjoying a raucous meal at a restaurant to celebrate her birthday.

Instead of Bagatelle St. Tropez – which serves French-Mediterranean cuisine – Ben and Jen were depicted having a few drinks at the equally sophisticated L’Opéra Saint-Tropez.

However, it seems that A-Rod has more important things on his mind as he gets ready to celebrate his 46th birthday aboard a swanky $32 million yacht.

That could have been inconvenient: JLo would have almost turned up at the same restaurant as A-Rod — posh Bagatelle St. Tropez — on the French Riviera (pictured above)

That could have been inconvenient: JLo would have almost turned up at the same restaurant as A-Rod — posh Bagatelle St. Tropez — on the French Riviera (pictured above)

Rub in: Ben and Jen parade their love around the French Riviera

Rub in: Ben and Jen parade their love around the French Riviera

The sports star was spotted with blonde NFL broadcaster Melanie, 35, although they are apparently “just friends.”

Melanie was pictured accompanying A-Rod to the restaurant, where Jen is said to have canceled her reservation.

Alex was also pictured with NFL star Eric Decker, 34, and his wife, singer Jessie James Decker, 33, as they enjoyed an onboard hot tub after dinner.

Packing a table: A-Rod arrived for dinner at a restaurant where JLo was interested in dining

Packing a table: A-Rod arrived for dinner at a restaurant where JLo was interested in dining

Hot date: A-Rod was joined by NFL broadcaster Melanie Collins, 35, even though they're apparently 'just friends'

Hot date: A-Rod was joined by NFL broadcaster Melanie Collins, 35, even though they’re apparently ‘just friends’

Rodriguez – who turns 46 tomorrow – plans to celebrate his big day on the Ocean Paradise yacht, which has a dazzling price tag of €27,000,000 ($31,860,810) and can hold a crew of 12 and 12 guests.

But that’s no match for Valerie, the superyacht currently priced at €110,000,000 ($129,817,600), where yesterday Ben and Jen re-enacted steamy scenes from her 2002 music video Jenny from the Block.

Jen’s vessel Valerie was built by Lürssen in 2011 and underwent an extensive refit in 2019, accommodating 17 guests in nine well-appointed cabins with room for a 27-person crew.

IG official: Ben, 48, and Jen, 52, packed on the PDA on their superyacht

IG official: Ben, 48, and Jen, 52, packed on the PDA on their superyacht

According to PageSix“Alex” hung out with friends and family during the trip, including Eric and Jessie James Decker. Melanie is good friends with them. They are all friends and she will be at his party,” a source said.

The source added that Melanie and the Deckers, as well as 50 other guests, expect to party tomorrow for A-Rod’s birthday.

Aside from being linked to blonde Southern Charm star Madison LeCroy, A-Rod has remained single since splitting with Jen, while her romance with ex Ben has gone into overdrive and developing at lightning speed.

cozy!  A-Rod is seen in the ship's hot tub alongside Melanie, 35, (left) and NFL star Eric Decker, 34, and his wife, singer Jessie James Decker, 33.

cozy! A-Rod is seen in the ship’s hot tub alongside Melanie, 35, (left) and NFL star Eric Decker, 34, and his wife, singer Jessie James Decker, 33.

.