increased joint pain with bp medication

I was put on medication for high blood pressure in early March and pain jn my knee and foot joints has increased hugely. Ive tried two different types now kn an ACE inhibitor but the stiffness snd aching remains. Feels as if someone poured cement into my legs and like theres a compression band around legs from the knees down. Im on list for surgery for both knees but this pain is way worse than before the medication. Has anyone else experienced this as a side effect of high bp medication?