Wtf? Whats wrong with this guy.

Were you guys friends before this? Maybe he thought it was a FWB thing or you guys were just two people casually dating, who got along, and had sex-- but it wasnt a budding relationship? Like the fact he asked you for advice makes me think he just saw you as a friend?
Regardless he shouldve never done any of what he did and hes an idiot.