Looks like you have a split connector?
First there are three connectors. You can replace that entire harness if needed. One of the connections (the one that looks broke) has a locking tab. The other two do not.
You need to remove the camera to work on that by removing the two pins. You might have to fiddle with the locking one to get it out.
You will have to see if that connection will continue to hold the pins. You might be able to use some two part epoxy to fix that connector
Does the camera appear to be OK and the little black ribbon unbroken?