The connector is a Molex part and it has a locking tab that also is polarized.
171856-0102
In the photo the mating connector is not the proper mate, it was just what I had on the PSU cable. Molex 22-01-2027 has a “friction ramp” that locks it in place.