How much weight do you lose when you give birth?

So I’ve gained a massive amount of weight during my pregnancy so far (17 kg and I’m 29W3D). I’m wondering how much of that will drop when I give birth. I’m not even overeating yet the weight gain is massive. I got pregnant while I was on my weight loss journey ( I was 3kg away from my target weight ) and I ended up gaining all the weight I lost back and more. I love my body for being able to carry this baby and I know that my weight doesn’t matter as long as my baby is okay but I can’t help but feel deeply depressed every time I look in the mirror and notice how much fat is on my face and arms and hips. I’m getting joint pain and I run out of breath so easily. I never gained so much weight in my life so I can’t help but feel this sense of shame when I see the number on the scale and even just looking at body :( If anyone had gone through the same thing any words of kindness are highly appreciated. For reference, I have Hashimoto (autoimmune hypothyroidism) and this is my first pregnancy.