Ben AffleckandJennifer Lopez’s recent reunion appears to have come at the right time.

“Ben and Jennifer were in the same mindset after their breakups,” a Latin music source tells PEOPLE.

Adds the source, “Whether they end up together or not it’s good for both of them now. And not that surprising.”

On April 15, Lopez, 51, and ex-fiancé Alex Rodriguez released a joint statement announcing the end of their engagement. Multiple sources previously confirmed to PEOPLE that Lopez ultimately broke up with Rodriguez, 45.

Affleck, 48, previously dated actress Ana de Armas. TheDeep Watercostarssplitin January after first being romantically linked in early 2020.

RELATED VIDEO:Jennifer LopezandBen Affleck’Spent Several Days' Together in Montana, Source Says

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories.

In late April, the actor was spotted outside of Lopez’s Los Angeles home. Days later, the two attended and participated in theVAX LIVE: The Concert to Reunite the Worldevent, which was taped on May 2 and aired on May 8.

Earlier this week, sources told PEOPLE Affleck and Lopez were both spotted riding in a car together near a resort in Big Sky, where the Oscar-winning director has a home. Affleck was seen behind the wheel while Lopez was in the passenger seat.

Jennifer Lopez (L); Ben Affleck.Getty (2)

jennifer lopez and ben affleck

“[Jennifer] spent several days with Ben out of town. They have a strong connection. It’s all been quick and intense, but Jennifer is happy,” a source told PEOPLE of the pair, who were later spotted arriving back in L.A. on Saturday on a private jet.

source: people.com