Lower back/ kidney pain!? help!

Daisy🌼
last night, i was tossing and turning all night and woke up in tears bcuz i was experiencing excruciating pain in my lower back/kidney area. i woke up and took some ibuprofen and the pain eventually faded. when i woke up, i still felt discomfort in the area, but it was definitely tolerable. then during lunch today, i guess the ibuprofen wore off cuz the pain came right back! i was in the middle of class trying not to cry, but it hurt so bad!! then i took some more ibuprofen, and the pain faded. i don't have any symptoms of a UTI or kidney stones.. but i'm not sure what this could be. i just ended my period like a week ago, so it's not that. i know my family has a history of kidney issues, but i'm only 17.. what do u guys think this could be?