fix: Character groups and escaping