I suffer from this. I can’t find the video I watched, but it suggested getting resistance bands and doing a side step movement against the bands.
Apparently as cyclists, our quads can be over developed and it causes tracking problems with the patella. The exercise warms up your glutes and keeps everything in line better. Worked for me, I used to get bad pain from jumping. I do this as part of my old git warm up now.
Complicated bit of kit, the knee, but it may help and is nearly free.