Welcome to the Forum.
What vehicle and a picture would help....
Sometimes there is a little sprung pin as part of the connection you need to depress to allow it to come apart. You may not see it easily depending on the orientation of the connector.
Tell us the vehicle.....