I am sooooo soooo sorry for you in this situation. It is indeed painful, and I would say allow yourself to feel what you feel and acknowledge and validate yourself. I think that's really important. I would do no contact for a long time. He's not giving you anything anyway, so it's no major loss.
I know some people here don't advocate dating, but I personally see no problem with it. You're heart might not be in it, but dating/flirting really does help the self-esteem.
Be as selfish as you can possibly be - in spirit, mind and body!