internal/scriptblocks/strings.validate.ps1

Set-PSFScriptblock -Name 'PSFramework.Validate.SafeName' -Scriptblock {
    $_ -match '^[\d\w_\-\.]+$'
} -Global