Idk how to get over it

I broke up with my bf cause i realized he was only using me for pics and sex and the last text he sent was to never text or call him agian and responded with okay. And now idk i feel bad... i dont like hurting people even tho they hurt me... should i text him or forget about it. I just wish i never gave in to all his begging...