The female connector (main harness) is clipped to the mounting bracket and won't move unless you unclip it.
Make sure that the release clip is free from dirt, which can stop it depressing fully -
Once clean, depress the release clip at its end, while firmly gripping the male connector...