You don't sound confused. You sound like you have already made up your mind.
Just because you are not with Erik doesn't mean you can't be the best mother ever. You owe yourself and your little bean to not stay in a situation you have already written off.
Actually, you sound very together and ready for the next wonderful chapter of your life.
The worst thing in the world is to "stay together for the sake of the children...".