The Quran is not a book of science, astronomy, history, or any other subject, as I have stated earlier, it's a Book of guidance
If Al-Razi had used opium as an anesthetic, it would have been completely permissible in the Quran because you are not consuming it; rather, it is being used for treatment. Even today, if you undergo surgery, the anesthesia will likely contain some form of alcohol. Today, the bulk of cough syrups you purchase will contain alcohol of some kind, although nearly all Muslims consume cough syrup as medicine, not booze.
The speaker in the video never even hinted at what you are concluding.