How to identify an appliance connector
In general, connectors like that are classified based on the pin thickness and pin spacing.  That might cut your solution set from a million connector models down to a few hundred thousand: useful but hardly solving the issue.

Posting photos of the far side of this connector would help also. Major vendors love to make one off connector designs so nothing else will fit.  In which case you're out of luck, short of finding a used connector harness, or scavenging similar models at a dump. Sometimes you can get lucky and the only difference is a keying pin (like the plastic bumps at the top of your photo).  Then you just cut off the keying feature and run with it.

If it were my washer, I'd probably saw open the failed connector, solder the wires directly to the pins, gently insert bare pins into the valve, and seal it all up with an appropriate clear silicon caulk (clear so I can see if anything goes wrong).