Omg, I've been in a very similar situation!

The best advice is to focus more on yourself. Maybe pick up a new hobby or reach out to friends to hang out more. This could be a great distraction from your current situation and you'll grow as a person.

In my situation, we've been working together for 2.5 years when I directly asked my coworker if he liked me. He was also flirting with me and other coworkers noticed. I got rejected but didn't take it personally. That was just before vacation. I decided to focus on myself and started hiking and going to salsa classes. I even went on a few coffee dates with guys that I met at parties but it didn't work out. When I saw him back in the office after vacation I didn't expect anything. However, he thought about it and said that he doesn't want to miss an opportunity to be with a great woman just because we work together. We're now in a relationship for more than a year and we're living together for 5 months. Also, met our friends and family. I've never been more happy in a relationship.