makepasswd: Corrected regex for formula test.

The regex didn't properly escape all characters, so some passwd results were
failing.