I didn't dodge the bullet

Hey all, I'm new here and didnt know what tag to use, so I hope this is fine.

Anyway, as you can read the title, I didn't dodge the bullet, I got shot in the chest with it. Or this is how it feels like.

Quick background:

I'm M29, my wife is F29. My wife found an affair partner at work. She fell for him and decided to divorce me. We have been together since we were 17 years old. Married for 12 years.

I'm my wifes first everything (boyfriend, fiancee, husband, everything). And my wife is or was my everything. I have loved her from the bottom of my heart since I first saw her.

We have shared every major milestone together. We studied together, we graduated together, we traveled together, we bought a house together, we have two kids together, and she just threw all of this out the window for a man she barely knows.

Current situation:

It's been almost two months since my wife told me that she fell for this other man. She started the affair behind my back but continued it right in front of my eyes. She came clean about everything, sleeping with him, dating him, everything. She said she was sorry, but that's about it. She was sorry but not sorry.

She's lived in her own apartment for almost a month now and she's actively dating her affair partner, again right in front of my eyes, she doesn't even want to hide it. We live in the same small city and we see each other whenever we exchange kids.

This shit just hurts so much, I'm so confused. This all happened so fast. I can't even understand it. She's just dating a man who she thinks is her soulmate. And I'm just some mistake from the past.

I don't know how to express my feelings through text, but I'm hurting badly. I miss my wife, or at least a version of her. I can't sleep, I can barely eat, I can barely focus on anything.

I don't know what to do.