The best thing to do would be to get started with a an exercise plan that will increase mobility, reduce pain, and correct imbalances causing the pain.
I use this program with all my clients and for myself too:
Ageless Mobility Pain-Free Wellness For LongevityThis is really important for people with serious injuries in their past because it restores function and prevents further damage.
You will feel a huge difference fast and without pain which can help you get back to doing the exercises you really love without pain.
It can help to see somebody for an assessment and a customized corrective exercise program at some point but ageless mobility is a great place to start for most people.