The Ready State Virtual Mobility Coach is like having a virtual Kelly Starrett in your pocket.
Have you had anyone look at your squat technique and mechanics?
You may need to spend some time retooling your squat.
This shift may have started when your knee caved it.
Going back and doing skill& drill work will retool your squat as you did when your knee was caving in.
Start with air squats and progress through maintaining your technique.