I've had similar but not identical pains. If something has gone wrong with your hip flexors or similar, it can cause pain round your glute and knee I think?
Also not an expert but worth seeing if stretching hip flexors in various ways helps, and then building up strength at extremes of current ROM if it does.
Obviously it's worth seeing a physio if you can etc..