Utility sink close to 220v dryer outlet
It is very common to have outlets, even panels near sinks.  No biggie.

Remember the dryer is going to be plugged in 24/7 and not likely to be messed around with, so not unsafe.