I recently learned that according to sistani i should do tayammum because of the medical devices I wear. Before that I had only been doing ghusl and not tayammum as well. Does this mean I have to make up the prayers which I did?

Yes it means according to his rulings your previous prayers must be repeated. However, according to the ruling of some other Maraje’ you don’t have to repeat your previous prayers.