It’s a horrible situation to be in. My ex husband left me 7 years ago for someone else. Eventually remarried her.
My only words to you is that life does go on and you do rebuild, slowly, piece by piece.
If you can keep an amicable relationship for the sake of your kids that will be great. Took me many years to get there.