She is enjoying getting attention from both of you.
IMO you have one move. Starting now no contact other than if it concerns your son. Detach and GAL. Move forward with the divorce if she wants to stop it she will.
Hugging her and taking her out dinner when she is in an open affair makes you look really weak.