She’s chosen to be unfaithful. Once cheating happens, trust is gone. She disrespected you in the worst way. She decided a brief fling was worth destroying your family.
What happened now is she’s back in reality. She learned that the affair was pure fantasy, like all affairs. She realized how much she messed up and wants to stay with you. Don’t fall for it. There’s someone out there who will treat you right. If you stay and she goes out, smiles at her phone, or does anything similar, you’ll keep wondering if she’s talking to someone else. You’ll always be paranoid. That’s not a healthy way to liev.
The next step is to make sure you get as much out of the divorce as possible. You do not leave your home that’s the most important thing, even if it means living with her until the divorce is finalized. But you should try to get her to leave, even if it means telling her you need space. Ask her to stay with her parents or elsewhere for a week. While she’s gone, change the locks. Don’t let her take the kids; they stay with you. She blew up your life, so she should leave the home, not you.