Glad to hear you're seeing somebody, and you already have some clues about what it might be. If you are subluxing your kneecap due to a muscle imbalance, you could probably get some relief with muscle-specific physical rehab. exercises and possibly, an exercise-friendly knee sleeve or brace. Best of luck to you!
Mary Ann