Was it rape? …

So I’ve never really spoke on this but I had a FWB whom I was having consensual vaginal and oral sex for over 3 years. Well, one night he got really high off cocaine and as we were having vaginal sex in doggy he took his penis out and slammed it in my butt without my consent. I cried. The pain was unbearable and I bled. He didn’t know what to do or say so I just wiped my tears and let it go. He kept going vaginally. After that incident I allowed him to fully penetrate me anally but I started to notice every time I’d say “it hurts” he’s simply reply with “it’ll stop hurting rn” and keep going. When I look back I cry because I know it was wrong of him to do but I feel like since I consented afterwards it doesn’t count? I’m confused. We don’t see each other anymore but it has definitely changed the way I see anal sex now.. I can’t even begin to think of ever doing it again I’m scared they won’t be respectful.