Leg pain when stretching

Patient: For a few months now I have been having a pretty sharp pain from the lateral side of my right knee, up my thigh into my hip. It only happens when I stretch in certain ways (usually when the leg is stretched out to the side). I am a dance teacher, so flexibility is really important and something i use every day. Any idea what this could be?