Corrects input arguments regex by using quotemeta