Honestly he kinda saved you by showing how much of a dick he is, it’s better you learned now instead of dealing with him for months until it all clicked. It’s awful you’re going through this and I hope you’re able to feel better with time. I guess just try to keep in mind that you dodged a massive bullet