Fix regex (\Z, not \z) for autosign checking, Fix #5543