Should I continue to be friends with him or should I completely cut off contact?

I have a crush on my ex-coworker and I confessed to him on my last day of work. He rejected me by saying that he doesn’t want a relationship now and he wants to continue to be friends with me.

Background about my crush: his last relationship was three years ago and it was a messy breakup. Ever since then he has been saying things like he doesn’t want to be involved with women anymore because women are complicated, he doesn’t understand them and it is hard to please them etc.

Background about my friendship with my crush: we are definitely friends. We have some things in common and we have some inside jokes. At one point we were playing this online game every day for one month and I got to know a lot more about him. sometimes we go out with other colleagues for dinner and games.

To be very honest, i really think that my feelings are not completely one sided which is why I had the courage to confess but I also expected this answer based on my daily interactions with him. He is still fearful of commitment and my confession was too abrupt for him.

Right now I no longer see him around in the office and i do not know if I should continue to reach out to him (such as texting or initiating dinner etc) and be friends with him. But of course, deep down I know I am hoping for something more which can be quite unhealthy for me.
Should I continue to be friends with him or should I completely cut off contact?
Post Opinion