During the COVID-19 pandemic, when fentanyl overdoses surged, doctors were desperate to find ways of helping their patients.