The day the guy’s name is taken off a legal contract as a resident is the day the home isn’t his anymore.
That’s a mere ministerial process. The dude was out of the marital bed and on his own. There’s no way he could go to court and force the woman to take him back. Rights of residency are much more complex than just having your name on a lease.