Sadly the logic board connector was damaged when you pulled a bit on the cable.
You could try bending down the detent clips (the two bent up ends, use care as you can easily snap them off) but I fear the connector contacts are distorted and really require a new connector installed.
Someone with good micro-soldering skills can replace the connector. I don’t recommend doing this your self if you’ve never micro-soldered I wouldn’t attempt it as you’re more likely to make things worse!
Here’s the needed part [https://beetstech.com/product/lcd-display-connector-20525-130e-01|LCD Display Connector (eDP)]