We've made some improvements in this area with the 2022.6 release, and my tests based on the info you provided show this should be fixed. If still broken for you please provide additional info.
From
avid.secure.force.com/pkb/articles/readme/Pro-Tools-2022-6-Release-Notes...
MIDI
- MIDI notes no longer erroneously move when selecting clips (PT-273060)