Be the bigger person and speak if u r by him. Dont like walk across the way to speak but only if he is right by you and y'all make eye contact. Thats it. he clearly wanted nothing serious then and probably still doesn't and just rude to act that way, but dont you be like him. Just act like you dont care and moved on and speak when you are near each other
Why would you hook up with a guy who ghosted you? Hello self respect?
Anyway tell your few friends you guys hooked up, and pretend like it wasn't a big deal. Act like it was just one off thing and you have no further interest. Act the same way with him. Been there done that.
Its a hookup he knew he could get it from you because of the history. You got played. It happens , next time act like you have no idea who he is and don't acknowledge he is there the next time if he tries to speak to you.
You got played LOL. If you think that's cruel, you need to get out more. There are guys who rape and assault women on dates all the time. He did you a favor by dropping you, actually, but you need to learn to pick better guys.