All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is permissible for the muḥrim (a person in the state of iḥrām) to use incense (bakhūr), sprays, and inhalers that contain aromatic substances for the purpose of treatment, because the intention is medical treatment, not the use of perfume (taṭayyub). No expiation (fidyah) is required of him for doing so.
It is stated in Ḥāshiyat al-Bujayrimī ʿalā al-Khaṭīb (Vol.2/p.455): “That which is intended for eating or for medical treatment, even if it has a pleasant scent, such as apples, spikenard (sunbul), and the various fragrant spices such as mastic (muṣṭakā), is not forbidden, and no fidyah is due for it, because what is intended for eating or treatment carries no fidyah.”. And Allah Almighty knows best.