My boyfriend of over two years cheated on me and dumped me

I’m not going back to him. I deleted him off everything. I know my worth. That doesn’t make the pain any less painful. We took each other’s virginities. Everything. I feel like I wasted two years of my life. I’m going Friday to get tested for any STDs. Any encouraging words? Thank you guys