Default of repo_packages_regex is None and ensuring it is a valid regex.