Mid left back pain?

Jessica
First post ever but I haven't felt much help on google. I'm 40 weeks pregnant tomorrow- about a week or two ago I experienced a dull aching pain in my middle left back, it lasted on and off all day and then it completely stopped. This last Friday night, I was awoken by the dull aching pain in the same spot, only hurts on that left side- almost feels under my ribs? It hurt so bad! It lasted all day Saturday and all night last night. It kept waking me up. It hurts worse to even sleep on my left side. My mother is worried it could be something with my kidneys. I have my due date appointment tomorrow so I'll mention it to my doctor and see what she says but I'd like opinions on if anyone has experienced pain like this?