How to remove GPIO ribbon from raspberry pi
Pull harder.  Assuming it is a standard double row IDC connector, anyway.  These things sometimes require a lot of force to separate due to the number of pins.  You can also try working it off by rocking it back and forth, only moving each end by 1-2 mm to avoid bending the pins.