Escape regex special characters
String escapeRegex(String str) { return str.replaceAll(RegExp(r'[.*+?^${}()|[\]\\]'), r'\$&'); }