ending

so i ended with this boy i had been with 18 months and he ended things with me and he was my first time and i really can’t get him out of my head like i think about him all the time and i know he doesn’t like me and i’m now realising how much i miss him and i don’t know what to do and i can’t message him, it sounds strangely stupid but i can’t :(( x