Ben Affleck was released from rehab for a short time so that he and estranged wife Jennifer Garner could celebrate Christmas with their three children.

After their separation in 2015 and divorce filing in April, the two actors have amicably continued to co-parent their kids, Violet, 12, Seraphina, 8, and Samuel, 5.

Affleck has been undergoing a new rehab treatment for alcohol addiction in the Los Angeles area ahead of filming “The Batman” next year, where he will return as the Caped Crusader after playing the character in the recent “Justice League.”

On Tuesday, he was spotted with his girlfriend, “Saturday Night Live” producer Lindsay Shookus, at Nobu in Malibu, Calif. Sources say he stayed sober during the meal and is expected to return to his rehab facility for further treatment.

It was also recently reported that the couple had rented an apartment on Manhattan’s Upper West Side, thought to be at 15 Central Park West, one of the city’s most exclusive buildings. Affleck will join Shookus at the apartment when he completes his latest treatment and rehab stint.