Someone who has type 1 diabetes and wears 2 medical devices, when they do ghusl the water doesnt touch the skin underneath the medical device. If they were to take them off it would be very expensive and even dangerous, so is their ghusl still valid because of a medical excuse right?

According to your marja’, this person would have to do tayammum. As an extra precaution, I also recommend doing ghusl.