I miss him :(

So I was talking to this guy for like two months and we weren't official but we were a proper thing and everyone knew etc. we had kissed but nothing more. anyway he had sex with someone else a week and a half ago and I told him that I wouldn't talk to him again and ended it. I was really upset and mad (obviously) for the first few days. But I always saw him at school and it made me really sad. We started talking again just as friends and I just miss him so much. I know I shouldn't go back there but I really want to! He wants to fix things between us and I want to as well but is it a bad idea? I need advice. I still really really like him but I'm so conflicted! I think what he did was wrong and I don't agree with it but I miss him and wish it could just go back to how it was 😫😫 HeLp!!