Hi, since you are on bed rest, the muscle inactivity causes weakness or muscle atrophy, which is causing the pain. You can do muscle isometric contractions and as much active mobility of hip and knee as much is permitted, without moving the ankle. Your pelvic, hip, and knee musculature may have gone into tightness.
Next Steps
For personalized care and advice, kindly consult online.
Health Tips
Be cautious while doing exercises so as to not increase the strain or pain.