Examine the existing mask implementations in the repository, such as the CPF mask, to understand the pattern format and how they are applied. Create a new mask for RG following the same structure, using a regular expression to enforce the pattern 'XX.XXX.XXX X'. Add corresponding unit tests and update any relevant documentation. Check the issue comments for any additional clarifications or preferences from the reporter.