Relieve pain, prevent injury, and increase performance. Get customized mobility coaching developed by Dr. Kelly Starrett.
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.