Could be referred pain form the knee joint and or connective tissue i.e. (meniscus, ligaments) with the mechanism of pain you describe. Do you have full painfree mobility in the knee? Swelling? Ankle mobility and power painfree? Any pain with resistance of the hamstring tendons? Could also look at pet anserine bursitis symptoms.
Just for starters!