please help

less than a month ago my boyfriend and i broke up. i got myself a girlfriend but i can’t stop thinking about him. i think about how happy he made me and how i want him in my life and i don’t want anyone else to have him. but he also hurt me and was never really there for me yet i still managed to be in love with him. idk what is happening.