Cosmetic testing has been banned in the UK for 28 years.
Medicines are still tested on a range of animals, including beagles. The the last 15 years or so there has been a shift toward using pigs as the non/rodent species (had to be one rodent and one non-rodent for safety testing), rather than dogs, because of public perception, but in my experience (I left the field in 2016 mind), the pigs were much more stressed by the experience than dogs, which have been bred to be handled for so many generations.
For studies on medicines for things like Parkinson’s, sometimes only a primate is close enough to the human brain to give reliable results.
Animals are only used when the is no acceptable alternative. If you had an illness and there was the choice of one that had been safety tested on animals, and one that hadn’t, would you want to be the first to try the latter?
Would you rather medicines be tested in the UK, with stringent rules about minimising animal suffering, or somewhere else with fewer rules?
Would you rather the animals be bred in the UK or bred somewhere else and shipped in?
Would you rather stressed pigs or fairly content beagles?
Most people prefer not to think about it, but still want safe medicines.