Weight gain

So I’m 5’2 and before pregnancy I was 175, my doctors and midwife’s didn’t feel it was any concern and now I’m 35 weeks pregnant and 222. My midwives don’t seem concerned at all over my weight gain but I do. And I don’t know what exactly to do about it. I’m worried about what is going to happen after I give birth. I know I gained extra weight and my eating hasn’t been the best but I feel like total crap after looking at the scale. Any advice?