I am sorry that your relationship with your wife became so confusing for you.
The best path forward is to accept that what you wanted with her is not something she can do with you. Try not to resent her for it and look to rediscover yourself and heal this loss so you may find someone else you can have the relationship you want with.
It’s best to work on having an understanding so you can still be a healthy parent for your children.