I have the following code, that looks if some values match a regex
$ValueRegex = [PSCustomObject]@{ "year" = "^(201[0-9]|2020)$" &