Doc it’s a quick fit connection so you need to push it on first,as you are doing this insert a pick or small screwdriver in the slots at either side and push them in slightly, then holding the side bits pressed in pull the connection off.
Push it on to start with relieves any pressure on the connector and allows the safety ring to release easily d—0.o—b