Every automotive connector has some kind of locking tab, sounds like yours could have broken off, why is a good question. Can secure it by wrapping Scotch #33 electrical tap with a dap of hot glue so it won't fall off.
Some you have to squeeze the tab, others expand it, other even have an extra red, knew guys that designed these things, called them frustrated Chinese puzzle designers. Easy for me to connect them with one hand, but when pulling a dash with some odd 20 connectors, need two to separate them but only can get one hand up there.
AC systems have to disastrous conditions, pressures very with temperature, too high, will blow a cork, too low, do not get proper lubrication flow, compressor will be toast. Early compressors used a sump with a sight glass, no problems, switched to what I call a two cycle engine design where the oil is mixed with the fuel, but refrigerant instead. Not nearly as good, mixing oil with refrigerant reduces the cooling capacity, and oil slugging can wreck a compressor, but cheaper.
So mechanical pressure switches were used, both low side and high side, later this was combined with one high side pressure switch that would only close if the pressures were within the 40-420 psi range. But pressures and temperatures increase proportionate, so a much cheaper thermistor is used, this is what you have. Another advantage, can also display ambient outdoor pressures. Kills the AC compressor clutch circuit below about 36*F. Has a negative temperature coefficient, so if opened would show a very low temperature, no AC.
Had to remove mine when I added fog lights, least this one I could see and used both hands to disconnect it, but sounds like somebody used a crow bar instead.