Not sure how to tell my bf I’m pregnant

I’m 21 and In my third year of college met my bf 2 months ago and have been together for 2 months. I just found out that I’m pregnant despite the fact that I’m on the pill , Idk how to tell him bc we were always careful even though I’m on the pill he would never finish in me he would pull out but there were a few times where I would forget to take the pill or take it late so I could see why I’m pregnant just scared to tell him bc he’s about to graduate and take a really good paying job. I feel like I’m ruining his life. On the bright side he told me if I ever got pregnant he would take care of his child and me just not sure if he will fill the same now. What should I do?