It’s understandable you are hurt, but please don’t let yourself feel or say you wasted your life. Being an at home parent is never a waste of time. You gave your children something precious that money cannot buy. So please don’t let them hear you have regrets.
It’s unfortunate but when people marry young they often outgrow each other. We just learn and grow so much in our 20’s and 30’s. You are both different people now and don’t think you yourself didn’t grow. Being an at home parent also presents life challenges that one learns and matures from.
You are still a father, it’s just now you are going to see what you can do in terms of developing a career too.