Look at the fill/drain plugs on older cars rear end pumpkins. I have a double ended wrench to take out those plugs that has seven different square tips on it. I restore antique cars, and have used most of those tips at one time or another. The common sizes are 3/8”, 7/16”, and 1/2”. My wrench ranges from 1/4” on up to 5/8”. Crazy tool, I inherited it from my father who worked as a mechanic back in the late 20s to the mid 30s.Yes, I've done same with a socket where you can find the right 3/8 drive 12 point socket that will fit on a 3/8 drive ratchet.
The socket is less likely to round out than the plug.
Trying to recall where I have seen plugs with recessed square heads? Conduit plugs?