Hi,
Usually such pain occurs with people who have desk job or spends most of the time in sitting.
Seems like Nerve compression.
Next Steps
Ideally should visit Physio or Orthopaedic for thorough assessment. Try moist heat fomentation for 15-20 min.
Health Tips
Avoid sitting for long duration, develop the strength of the Core muscles.