Update regexes to not match wrong keys

Keys must end with a colon followed by a space or newline.
Fix mix of spaces and tabs (use spaces everywhere)