All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad
is His slave and Messenger.
There is no objection to using the aforementioned medication if its benefit is known, and there is nothing in Islamic law that prohibits doing so. As for the claim that jinn are attracted to an uncovered body, this is a statement devoid of any sound basis.
Therefore, if it has been established that the exercises recommended by your physician are beneficial, there is no harm in practicing them. You should also make use of ruqyah (spiritual remedies) from the Qur’an and the Sunnah, as well as beneficial supplications, for these are, by Allah’s permission, beneficial against all illnesses.
Allah Knows best.