بسم الله الرحمن الرحيم
Fast does not break due to cutting hair, bleeding or touching one’s wife. Fast shall break if water entered into the throat as a result of gargling. Fast breaks if something goes into the stomach or brain through mouth, ears and nose. Likewise, if something goes inside through alimentary canal such as oil and medicine etc then fast shall break.
Allah knows Best!
Darul Uloom Deoband
This answer was collected from the official ifta website of Darul Uloom Deoband in India.