Format field value post-function was interpreting the replacement string parameter as a regular expression instead of a string literal.
Parameter replacement at parser functionsreplaceFirst(string, regex, replacement) and replaceAll(string, regex, replacement) was being interpreted as a regex instead of a string literal.