update regexes to not match wrong keys

keys must end with a colon followed by a space or newline