Befriending my ex.... (gulps)

So recently my ex called me out of nowhere we left off on bad terms but overall he was my best friend, is it bad to hang out with him??? I am in no way attracted to him nor do I have feelings for him but I feel somewhat bad about hanging out with him now that I have a boyfriend... we only hung out once and I felt as if I did something wrong but im not sure😕