Some of the wire bundle connectors tend to do that. Be sure you have identified the actual locking tab that has to depress (I am nearsighted and have to remove specs to see it clearly) and once you are sure of the tab then it is just stuck, some do that. Vibration over time burrs the plastic tab and detent up to not come loose clean easy.
Until locking tab is identified you are looking at damage forcing it and some can be pretty costly. Use of specialty tools often like 1/16" wide screwdriver or Xacto knife, dental pick, or other very small thin flat too to depress tab if needed, sometimes fingers do not press it down enough. Frustration making you pull out slightly while pushing down tab will bite too, push IN while pressing the tab. THEN pull out. It's happened to me a hundred times.
Just went through it on a third brake light assembly, I like to never figured out which corner was the release tab. Had to go and work on something else while getting my attitude back under control. Found tab and out instantly, they try to hide that crap to make you break parts.
The thing to get your wits back is to remember that they simple click all wiring in place 100% now, the more you damage the connector the harder it comes out. 80% of the tools on the assembly line are now all gloved hand only, no physical tool used at all. So it has to be easy.