In this work, we demonstrate a straightforward and versatile approach for fabricating flexible SERS substrates for highly sensitive fentanyl detection. Our design strategy integrates the synthesis of a yolk-shell structured plasmonic nanomaterial with a flexible cellulose substrate. The resulting SERS platform demonstrates excellent sensing capabilities, achieving a fentanyl detection limit as low as 4.89 ng mL-1.