Finds the last occurrence of pattern.
pattern
int lastIndexOf(Pattern pattern, [int? start]) => valueString?.lastIndexOf(pattern, start) ?? -1;