I went through this too. Did you push back hard? I refused to leave without the prescription that was given to me by a doctor for a health condition that was none of their business. Eventually they caved.I can’t get ivermectin. I had a scrip and the pharmacist refused to fill it.
But you could also try a different pharmacy?