If you can’t squat due to health reasons, I think the very first step would be to fix those issues in order to be able to squat.
Until then, you have a few options (in order of effectiveness):
- Box Squats
- Trap Deadlift (it’s a better exercise than anything overall, but were talking legs)
- GHR + Lunges