Diving in fresh water all i do for DIN 1st stages is to purge the pressure, undo the 1st stage enough to ensure the O ring is not seated, and very carefully open the cyl valve a small amount. Just enough to push some air out and round the DIN threads, which also pushes out any water that had crept down and filled those threads (which it does).
Note the small opening of the valve only. We don't need 100's of bar, we don't need a gale force wind and screaming air coming out, we just need a gentle pffft for a few seconds
For salt water, i rinse everything as an assembly if possible, ie run entire scuba unit, pressurised under a fresh water hose or tap, or dunk in large fresh water tank, then repease the blow out step i mentioned before removing the regulators from the cylinder.
For yoke type 1st stages, it's less important, because there really isn't much internal volume to get full of salty water. Here i just take off the 1st stage, rinse the cylinder and valve, then blow a little air out, again, carefully, slowly, no great gushing out with a scream, to ensure nothing is left in the valve passages.
In reality, if you look at a typical cylinder valve, there is only one small passange from the actual sealing face of the valve shuttle up and into the exit area (either for DIN or yoke) The amount of water that will get in there is pretty small, so is unlikely to be an issue.
I tend to wash the valve more to simply keep the valve knob and the PTFE/NYLON disc behind it free of salt, because this is what really makes the valve stiff to turn