U dint mension since how long its paining...
Next Steps
if its since few weeks only then it can be due to large uterus with baby might be compressing a nerve in thigh
Health Tips
avoid sitting on floor and squatting...avoid all activity in which u have to flex thigh fully... u can take dolo 650 2 times a day for few days..still if it doesnt get relieved then better consult an orthopaedician either on video call or in person