Anyone breastfeed in hospital taking Oxycodone (Percocet)?

I was given oxycodone/ Percocet in hospital for pain relief post surgery (C-section).

I would have thought everything given to me would be safe for breastfeeding.

However, looking more closely at medicines to avoid it appears I should not have breastfed taking these meds.

Anyone have any similar experience?