Improves parameter identifier generation to prevent sporadic errors in regular expressions