If those things reached your throat, than your fast is invalid, but if not so, than i am pretty sure your fast is valid. If you properly spitted those drugs and blood out.
Besides this, i would suggest you to try to do such things after fasting, change dentist or ask him for special appointment or whatever possible, to avoid any difficulties and doubts when fasting.
Imaam Ibn Qudaamah may Allaah have mercy upon him
, said: 'If a fasting person is bleeding in his mouth
or has vomit, and he swallows it, his fast is broken even if it is a
small amount, because the ruling that applies to other apparent things
apply to the mouth as well. because the basic principle is that anything that goes from the mouth to the stomach breaks the fast, with the exception of saliva as it is
difficult to avoid it.' (Al-Mughni, 4/356)
Also see Shiekh bin baz fatwa on Having dental treatment whilst fasting