Get in the gym and build up a strength program focusing on doing lots of squats with some other exercises for quads and hamstrings. Take it very easy on the squats and very gradually build up your routine.
If you have any knee or hip pain, take a day or two off and ease back into it. If it persists, take a few more days off. If it is still an issue, take a few weeks off until you feel zero pain and start your running back up from scratch. If that doesn't work, go see an ortho and check for arthritis or other damage.
Don't wear Hokas.
If you start feeling good, do some hill sprints. Nothing crazy hard. But hills are great for form and strength.
There will always be some aches and pains with running, especially after 40. But you should be able to feel good when you run and not be sore the next day. With smart training and good strength, you should have no problem running 20-30 mpw through your 50s and 60s without doing any permanent damage.