Again, my condolences on your breakup. It sucks when that happens.
You probably already know this, but the hopelessness might be just the grief talking and will pass. I have a more than passing relationship with grief, and it has come to be a kind of friend - it seems to be the only thing that actually makes something that is or feels like a tragedy better in the end. The truth stays the same, but it feels clearer and more opportunities open up once the grief has flowed past through me. I hope this is the case for you.
May what's coming next in your life and decade be a lot better than the recent past.