Add a validator Ruby class to validate CODEOWNERS

Potentially use this function as a basis: #219916 (comment 1311635444)

Edited by Torsten Linz