how do i get over an ex-boyfriend

i got dumped 🤦🏽‍♀️ & i just keep crying & thinking about it. i keep thinking about him. i keep trying to understand why he doesnt want me anymore. i keep wondering was i good enough. i just dk. what am i doing wrong. i just cant believe he hurt me like this. after a year & some months 😪