function checkPropertyName(name, hint) {
		const match = rStartsWithValidPropertyName.exec(name);
		if ( match == null || match[0].length !== name.length ) {
			naming[name] ??= [];
			naming[name].push(hint);
		}
	}
Checks the name of a property in an object-like structure.
As in JavaScript, the rules for such names are less strict than
for classes, interfaces or function declarations.