Regex for keys: fixed the bug.