// AUTO-GENERATED by scripts/gen-patterns.mjs — DO NOT EDIT
// Source order: octocode-security-utils allRegexPatterns (canonical TS order)
//
// Conversion rules:
//   g flag      → dropped (Rust iterators are global)
//   i/m/s flags → Rust inline (?i)/(?m)/(?s)
//   (?<name>)   → (?P<name>)
//   [\d-X]     → [\d\-X] (invalid range boundary fix)

use regex::{Regex, RegexSet, RegexSetBuilder};
use std::sync::LazyLock;

#[derive(Debug, Clone)]
pub struct Pattern {
    pub name: &'static str,
    pub file_context: Option<&'static str>,
}

/// All patterns in the same order as TypeScript allRegexPatterns
pub static PATTERNS: &[Pattern] = &[
    Pattern {
        name: "openaiApiKeyLegacy",
        file_context: None,
    },
    Pattern {
        name: "openaiProjectApiKey",
        file_context: None,
    },
    Pattern {
        name: "openaiServiceAccountKey",
        file_context: None,
    },
    Pattern {
        name: "openaiAdminKey",
        file_context: None,
    },
    Pattern {
        name: "openaiOrgId",
        file_context: None,
    },
    Pattern {
        name: "groqApiKey",
        file_context: None,
    },
    Pattern {
        name: "cohereApiKey",
        file_context: None,
    },
    Pattern {
        name: "huggingFaceToken",
        file_context: None,
    },
    Pattern {
        name: "perplexityApiKey",
        file_context: None,
    },
    Pattern {
        name: "replicateApiToken",
        file_context: None,
    },
    Pattern {
        name: "anthropicApiKey",
        file_context: None,
    },
    Pattern {
        name: "mistralApiKey",
        file_context: None,
    },
    Pattern {
        name: "tavilyApiKey",
        file_context: None,
    },
    Pattern {
        name: "deepseekApiKey",
        file_context: None,
    },
    Pattern {
        name: "togetherApiKey",
        file_context: None,
    },
    Pattern {
        name: "fireworksApiKey",
        file_context: None,
    },
    Pattern {
        name: "xaiApiKey",
        file_context: None,
    },
    Pattern {
        name: "openRouterApiKey",
        file_context: None,
    },
    Pattern {
        name: "amazonBedrockApiKey",
        file_context: None,
    },
    Pattern {
        name: "ai21ApiKey",
        file_context: None,
    },
    Pattern {
        name: "stabilityApiKey",
        file_context: None,
    },
    Pattern {
        name: "voyageApiKey",
        file_context: None,
    },
    Pattern {
        name: "elevenLabsApiKey",
        file_context: None,
    },
    Pattern {
        name: "assemblyaiApiKey",
        file_context: None,
    },
    Pattern {
        name: "pineconeApiKeyPrefixed",
        file_context: None,
    },
    Pattern {
        name: "wandbApiKey",
        file_context: Some("wandb"),
    },
    Pattern {
        name: "cometApiKey",
        file_context: None,
    },
    Pattern {
        name: "langchainApiKey",
        file_context: None,
    },
    Pattern {
        name: "unstructuredApiKey",
        file_context: None,
    },
    Pattern {
        name: "vercelToken",
        file_context: None,
    },
    Pattern {
        name: "posthogApiKey",
        file_context: None,
    },
    Pattern {
        name: "posthogPersonalApiKey",
        file_context: None,
    },
    Pattern {
        name: "posthogFeatureFlagsSecureApiKey",
        file_context: None,
    },
    Pattern {
        name: "posthogOauthAccessToken",
        file_context: None,
    },
    Pattern {
        name: "posthogOauthRefreshToken",
        file_context: None,
    },
    Pattern {
        name: "datadogApiKey",
        file_context: None,
    },
    Pattern {
        name: "honeycombApiKey",
        file_context: None,
    },
    Pattern {
        name: "jwtToken",
        file_context: None,
    },
    Pattern {
        name: "sessionIds",
        file_context: None,
    },
    Pattern {
        name: "googleOauthToken",
        file_context: None,
    },
    Pattern {
        name: "googleOauthRefreshToken",
        file_context: Some("(?:\\.env|config|settings|secrets)"),
    },
    Pattern {
        name: "onePasswordSecretKey",
        file_context: None,
    },
    Pattern {
        name: "onePasswordServiceAccountToken",
        file_context: None,
    },
    Pattern {
        name: "jsonWebTokenEnhanced",
        file_context: None,
    },
    Pattern {
        name: "authressServiceClientAccessKey",
        file_context: None,
    },
    Pattern {
        name: "auth0ClientSecret",
        file_context: None,
    },
    Pattern {
        name: "auth0ManagementToken",
        file_context: None,
    },
    Pattern {
        name: "supertokensApiKey",
        file_context: None,
    },
    Pattern {
        name: "basicAuthHeader",
        file_context: None,
    },
    Pattern {
        name: "bearerAuthHeader",
        file_context: None,
    },
    Pattern {
        name: "awsAccessKeyId",
        file_context: None,
    },
    Pattern {
        name: "awsAccountId",
        file_context: None,
    },
    Pattern {
        name: "awsAppSyncApiKey",
        file_context: None,
    },
    Pattern {
        name: "awsIamRoleArn",
        file_context: None,
    },
    Pattern {
        name: "awsLambdaFunctionArn",
        file_context: None,
    },
    Pattern {
        name: "awsMwsAuthToken",
        file_context: None,
    },
    Pattern {
        name: "awsS3BucketArn",
        file_context: None,
    },
    Pattern {
        name: "alibabaAccessKeyId",
        file_context: None,
    },
    Pattern {
        name: "awsSecretAccessKey",
        file_context: None,
    },
    Pattern {
        name: "awsSessionToken",
        file_context: None,
    },
    Pattern {
        name: "awsSecretsManagerArn",
        file_context: None,
    },
    Pattern {
        name: "googleApiKey",
        file_context: None,
    },
    Pattern {
        name: "googleOAuth2ClientId",
        file_context: None,
    },
    Pattern {
        name: "googleOAuthClientSecret",
        file_context: None,
    },
    Pattern {
        name: "gcpServiceAccountEmail",
        file_context: None,
    },
    Pattern {
        name: "azureStorageConnectionString",
        file_context: None,
    },
    Pattern {
        name: "azureSubscriptionId",
        file_context: Some("(?:\\.env|config|settings|secrets)"),
    },
    Pattern {
        name: "azureTenantDomain",
        file_context: Some("(?:\\.env|config|settings|secrets)"),
    },
    Pattern {
        name: "azureCosmosDbConnectionString",
        file_context: None,
    },
    Pattern {
        name: "azureServiceBusConnectionString",
        file_context: None,
    },
    Pattern {
        name: "dropboxAccessToken",
        file_context: None,
    },
    Pattern {
        name: "dropboxAppKey",
        file_context: None,
    },
    Pattern {
        name: "supabaseServiceKey",
        file_context: None,
    },
    Pattern {
        name: "supabaseSecretKey",
        file_context: None,
    },
    Pattern {
        name: "planetScaleConnectionString",
        file_context: None,
    },
    Pattern {
        name: "planetScaleToken",
        file_context: None,
    },
    Pattern {
        name: "sendgridApiKey",
        file_context: None,
    },
    Pattern {
        name: "mailgunApiKey",
        file_context: None,
    },
    Pattern {
        name: "mailchimpApiKey",
        file_context: None,
    },
    Pattern {
        name: "telegramBotToken",
        file_context: None,
    },
    Pattern {
        name: "twilioApiKey",
        file_context: None,
    },
    Pattern {
        name: "twilioAccountSid",
        file_context: None,
    },
    Pattern {
        name: "dockerHubToken",
        file_context: None,
    },
    Pattern {
        name: "pypiApiToken",
        file_context: None,
    },
    Pattern {
        name: "figmaToken",
        file_context: None,
    },
    Pattern {
        name: "renderToken",
        file_context: None,
    },
    Pattern {
        name: "airtablePersonalAccessToken",
        file_context: None,
    },
    Pattern {
        name: "typeformToken",
        file_context: None,
    },
    Pattern {
        name: "intercomAccessToken",
        file_context: None,
    },
    Pattern {
        name: "digitalOceanToken",
        file_context: None,
    },
    Pattern {
        name: "digitalOceanOAuthToken",
        file_context: None,
    },
    Pattern {
        name: "digitalOceanRefreshToken",
        file_context: None,
    },
    Pattern {
        name: "cloudflareApiKey",
        file_context: None,
    },
    Pattern {
        name: "cloudflareGlobalApiKey",
        file_context: None,
    },
    Pattern {
        name: "cloudflareOriginCaKey",
        file_context: None,
    },
    Pattern {
        name: "flyioAccessToken",
        file_context: None,
    },
    Pattern {
        name: "flyioMachineToken",
        file_context: None,
    },
    Pattern {
        name: "dopplerApiToken",
        file_context: None,
    },
    Pattern {
        name: "dynatraceApiToken",
        file_context: None,
    },
    Pattern {
        name: "netlifyAccessToken",
        file_context: None,
    },
    Pattern {
        name: "scalingoApiToken",
        file_context: None,
    },
    Pattern {
        name: "infracostApiToken",
        file_context: None,
    },
    Pattern {
        name: "harnessApiKey",
        file_context: None,
    },
    Pattern {
        name: "azureAdClientSecret",
        file_context: None,
    },
    Pattern {
        name: "herokuApiKeyV2",
        file_context: None,
    },
    Pattern {
        name: "microsoftTeamsWebhook",
        file_context: None,
    },
    Pattern {
        name: "oktaAccessToken",
        file_context: None,
    },
    Pattern {
        name: "openshiftUserToken",
        file_context: None,
    },
    Pattern {
        name: "denoDeployToken",
        file_context: None,
    },
    Pattern {
        name: "resendApiKey",
        file_context: None,
    },
    Pattern {
        name: "azureOpenaiApiKey",
        file_context: None,
    },
    Pattern {
        name: "railwayApiToken",
        file_context: None,
    },
    Pattern {
        name: "convexDeployKey",
        file_context: None,
    },
    Pattern {
        name: "upstashKafkaCredentials",
        file_context: None,
    },
    Pattern {
        name: "cloudflareApiTokenPrefixed",
        file_context: None,
    },
    Pattern {
        name: "jwtSecrets",
        file_context: None,
    },
    Pattern {
        name: "kubernetesSecrets",
        file_context: Some("\\.ya?ml$"),
    },
    Pattern {
        name: "dockerComposeSecrets",
        file_context: Some("docker-compose\\.ya?ml$"),
    },
    Pattern {
        name: "springBootSecrets",
        file_context: Some("(?:application|bootstrap)(?:-\\w+)?\\.(?:properties|ya?ml)$"),
    },
    Pattern {
        name: "dotnetConnectionStrings",
        file_context: Some("(?:appsettings|web\\.config).*\\.(?:json|config)$"),
    },
    Pattern {
        name: "base64EncodedSecrets",
        file_context: None,
    },
    Pattern {
        name: "rsaPrivateKey",
        file_context: None,
    },
    Pattern {
        name: "pkcs8PrivateKey",
        file_context: None,
    },
    Pattern {
        name: "ecPrivateKey",
        file_context: None,
    },
    Pattern {
        name: "dsaPrivateKey",
        file_context: None,
    },
    Pattern {
        name: "opensshPrivateKey",
        file_context: None,
    },
    Pattern {
        name: "sshPrivateKeyEncrypted",
        file_context: None,
    },
    Pattern {
        name: "puttyPrivateKey",
        file_context: None,
    },
    Pattern {
        name: "pgpPrivateKey",
        file_context: None,
    },
    Pattern {
        name: "firebaseServiceAccountPrivateKey",
        file_context: None,
    },
    Pattern {
        name: "openvpnClientPrivateKey",
        file_context: None,
    },
    Pattern {
        name: "dhParameters",
        file_context: None,
    },
    Pattern {
        name: "ageSecretKey",
        file_context: None,
    },
    Pattern {
        name: "vaultBatchToken",
        file_context: None,
    },
    Pattern {
        name: "vaultServiceToken",
        file_context: None,
    },
    Pattern {
        name: "vaultPeriodicToken",
        file_context: None,
    },
    Pattern {
        name: "base64PrivateKeyContent",
        file_context: None,
    },
    Pattern {
        name: "hexEncodedKey",
        file_context: None,
    },
    Pattern {
        name: "postgresqlConnectionString",
        file_context: None,
    },
    Pattern {
        name: "mysqlConnectionString",
        file_context: None,
    },
    Pattern {
        name: "jdbcConnectionStringWithCredentials",
        file_context: Some("(?:\\.env|config|settings|secrets)"),
    },
    Pattern {
        name: "mongodbConnectionString",
        file_context: None,
    },
    Pattern {
        name: "redisConnectionString",
        file_context: None,
    },
    Pattern {
        name: "redisAuthPassword",
        file_context: None,
    },
    Pattern {
        name: "elasticsearchCredentials",
        file_context: None,
    },
    Pattern {
        name: "couchdbCredentials",
        file_context: None,
    },
    Pattern {
        name: "neo4jCredentials",
        file_context: None,
    },
    Pattern {
        name: "timescaledbConnectionString",
        file_context: None,
    },
    Pattern {
        name: "clickhouseCredentials",
        file_context: None,
    },
    Pattern {
        name: "cassandraConnectionString",
        file_context: None,
    },
    Pattern {
        name: "faunadbKey",
        file_context: None,
    },
    Pattern {
        name: "databricksApiToken",
        file_context: None,
    },
    Pattern {
        name: "pineconeApiKey",
        file_context: None,
    },
    Pattern {
        name: "databaseUrlWithCredentials",
        file_context: None,
    },
    Pattern {
        name: "clickhouseCloudApiKey",
        file_context: None,
    },
    Pattern {
        name: "neonDatabaseConnectionString",
        file_context: None,
    },
    Pattern {
        name: "tursoDatabaseToken",
        file_context: None,
    },
    Pattern {
        name: "upstashRedisToken",
        file_context: None,
    },
    Pattern {
        name: "supabaseJwtKey",
        file_context: None,
    },
    Pattern {
        name: "cockroachdbConnectionString",
        file_context: None,
    },
    Pattern {
        name: "npmAccessToken",
        file_context: None,
    },
    Pattern {
        name: "nugetApiKey",
        file_context: None,
    },
    Pattern {
        name: "artifactoryApiKey",
        file_context: None,
    },
    Pattern {
        name: "herokuApiKey",
        file_context: None,
    },
    Pattern {
        name: "terraformCloudToken",
        file_context: None,
    },
    Pattern {
        name: "pulumiAccessToken",
        file_context: None,
    },
    Pattern {
        name: "atlassianApiToken",
        file_context: None,
    },
    Pattern {
        name: "sourcegraphApiKey",
        file_context: None,
    },
    Pattern {
        name: "linearApiKey",
        file_context: None,
    },
    Pattern {
        name: "notionIntegrationToken",
        file_context: None,
    },
    Pattern {
        name: "notionIntegrationTokenLegacy",
        file_context: None,
    },
    Pattern {
        name: "stackhawkApiKey",
        file_context: None,
    },
    Pattern {
        name: "sentryAuthToken",
        file_context: None,
    },
    Pattern {
        name: "bugsnagApiKey",
        file_context: None,
    },
    Pattern {
        name: "rollbarAccessToken",
        file_context: None,
    },
    Pattern {
        name: "postmanApiToken",
        file_context: None,
    },
    Pattern {
        name: "prefectApiToken",
        file_context: None,
    },
    Pattern {
        name: "readmeApiToken",
        file_context: None,
    },
    Pattern {
        name: "rubygemsApiToken",
        file_context: None,
    },
    Pattern {
        name: "clojarsApiToken",
        file_context: None,
    },
    Pattern {
        name: "snykApiToken",
        file_context: None,
    },
    Pattern {
        name: "sonarqubeToken",
        file_context: None,
    },
    Pattern {
        name: "travisciAccessToken",
        file_context: None,
    },
    Pattern {
        name: "codecovAccessToken",
        file_context: None,
    },
    Pattern {
        name: "droneCiAccessToken",
        file_context: None,
    },
    Pattern {
        name: "octopusDeployApiKey",
        file_context: None,
    },
    Pattern {
        name: "circleciToken",
        file_context: None,
    },
    Pattern {
        name: "buildkiteAgentToken",
        file_context: None,
    },
    Pattern {
        name: "launchdarklyAccessToken",
        file_context: None,
    },
    Pattern {
        name: "algoliaApiKey",
        file_context: None,
    },
    Pattern {
        name: "clerkSecretKey",
        file_context: None,
    },
    Pattern {
        name: "clerkPublishableKey",
        file_context: None,
    },
    Pattern {
        name: "launchdarklySdkKey",
        file_context: None,
    },
    Pattern {
        name: "vercelOidcToken",
        file_context: None,
    },
    Pattern {
        name: "novuApiKey",
        file_context: None,
    },
    Pattern {
        name: "triggerDevApiKey",
        file_context: None,
    },
    Pattern {
        name: "nxCloudAccessToken",
        file_context: None,
    },
    Pattern {
        name: "depotToken",
        file_context: None,
    },
    Pattern {
        name: "grafbaseApiKey",
        file_context: None,
    },
    Pattern {
        name: "shopifyStorefrontAccessToken",
        file_context: None,
    },
    Pattern {
        name: "woocommerceConsumerKey",
        file_context: None,
    },
    Pattern {
        name: "woocommerceConsumerSecret",
        file_context: None,
    },
    Pattern {
        name: "contentfulAccessToken",
        file_context: None,
    },
    Pattern {
        name: "mailchimpEcommerceApiKey",
        file_context: None,
    },
    Pattern {
        name: "credentialsInUrl",
        file_context: None,
    },
    Pattern {
        name: "envVarSecrets",
        file_context: None,
    },
    Pattern {
        name: "mapboxSecretToken",
        file_context: None,
    },
    Pattern {
        name: "mapboxPublicToken",
        file_context: None,
    },
    Pattern {
        name: "grafanaCloudApiKey",
        file_context: None,
    },
    Pattern {
        name: "newRelicApiKey",
        file_context: None,
    },
    Pattern {
        name: "newRelicInsightKey",
        file_context: None,
    },
    Pattern {
        name: "newRelicBrowserApiToken",
        file_context: None,
    },
    Pattern {
        name: "newRelicInsertKey",
        file_context: None,
    },
    Pattern {
        name: "grafanaApiKey",
        file_context: None,
    },
    Pattern {
        name: "grafanaServiceAccountToken",
        file_context: None,
    },
    Pattern {
        name: "sentryOrgToken",
        file_context: None,
    },
    Pattern {
        name: "sentryUserToken",
        file_context: None,
    },
    Pattern {
        name: "sumoLogicAccessId",
        file_context: None,
    },
    Pattern {
        name: "splunkApiToken",
        file_context: None,
    },
    Pattern {
        name: "logdnaApiKey",
        file_context: None,
    },
    Pattern {
        name: "logglyToken",
        file_context: None,
    },
    Pattern {
        name: "stripeSecretKey",
        file_context: None,
    },
    Pattern {
        name: "stripeWebhookSecret",
        file_context: None,
    },
    Pattern {
        name: "stripePublishableKey",
        file_context: None,
    },
    Pattern {
        name: "paypalAccessToken",
        file_context: None,
    },
    Pattern {
        name: "paypalBraintreeAccessToken",
        file_context: None,
    },
    Pattern {
        name: "squareAccessToken",
        file_context: None,
    },
    Pattern {
        name: "squareOauthSecret",
        file_context: None,
    },
    Pattern {
        name: "squareApplicationId",
        file_context: None,
    },
    Pattern {
        name: "shopifyPrivateAppPassword",
        file_context: None,
    },
    Pattern {
        name: "shopifyAccessToken",
        file_context: None,
    },
    Pattern {
        name: "shopifyWebhookToken",
        file_context: None,
    },
    Pattern {
        name: "adyenApiKey",
        file_context: None,
    },
    Pattern {
        name: "razorpayApiKey",
        file_context: None,
    },
    Pattern {
        name: "flutterwaveKeys",
        file_context: None,
    },
    Pattern {
        name: "coinbaseAccessToken",
        file_context: None,
    },
    Pattern {
        name: "krakenAccessToken",
        file_context: None,
    },
    Pattern {
        name: "kucoinAccessToken",
        file_context: None,
    },
    Pattern {
        name: "kucoinSecretKey",
        file_context: None,
    },
    Pattern {
        name: "bittrexAccessKey",
        file_context: None,
    },
    Pattern {
        name: "binanceApiKey",
        file_context: None,
    },
    Pattern {
        name: "bybitApiKey",
        file_context: None,
    },
    Pattern {
        name: "gocardlessApiToken",
        file_context: None,
    },
    Pattern {
        name: "plaidApiToken",
        file_context: None,
    },
    Pattern {
        name: "plaidClientId",
        file_context: None,
    },
    Pattern {
        name: "lemonSqueezyApiKey",
        file_context: None,
    },
    Pattern {
        name: "paddleApiKey",
        file_context: None,
    },
    Pattern {
        name: "mollieApiKey",
        file_context: Some("mollie"),
    },
    Pattern {
        name: "privateKeyPem",
        file_context: None,
    },
    Pattern {
        name: "pgpPrivateKeyBlock",
        file_context: None,
    },
    Pattern {
        name: "shippoApiToken",
        file_context: None,
    },
    Pattern {
        name: "easypostApiToken",
        file_context: None,
    },
    Pattern {
        name: "easypostTestApiToken",
        file_context: None,
    },
    Pattern {
        name: "duffelApiToken",
        file_context: None,
    },
    Pattern {
        name: "frameioApiToken",
        file_context: None,
    },
    Pattern {
        name: "maxmindLicenseKey",
        file_context: None,
    },
    Pattern {
        name: "asanaPersonalAccessToken",
        file_context: None,
    },
    Pattern {
        name: "mondayApiToken",
        file_context: None,
    },
    Pattern {
        name: "trelloApiKey",
        file_context: None,
    },
    Pattern {
        name: "jiraApiToken",
        file_context: None,
    },
    Pattern {
        name: "settlemintApplicationAccessToken",
        file_context: None,
    },
    Pattern {
        name: "settlemintPersonalAccessToken",
        file_context: None,
    },
    Pattern {
        name: "settlemintServiceAccessToken",
        file_context: None,
    },
    Pattern {
        name: "slackBotToken",
        file_context: None,
    },
    Pattern {
        name: "slackUserToken",
        file_context: None,
    },
    Pattern {
        name: "slackWorkspaceToken",
        file_context: None,
    },
    Pattern {
        name: "slackRefreshToken",
        file_context: None,
    },
    Pattern {
        name: "slackWebhookUrl",
        file_context: None,
    },
    Pattern {
        name: "slackWebhookUrlClassic",
        file_context: Some("(?:\\.env|config|settings|secrets)"),
    },
    Pattern {
        name: "slackAppToken",
        file_context: None,
    },
    Pattern {
        name: "slackConfigAccessToken",
        file_context: None,
    },
    Pattern {
        name: "sendbirdAccessToken",
        file_context: None,
    },
    Pattern {
        name: "messagebirdApiToken",
        file_context: None,
    },
    Pattern {
        name: "mattermostAccessToken",
        file_context: None,
    },
    Pattern {
        name: "zendeskSecretKey",
        file_context: None,
    },
    Pattern {
        name: "freshdeskApiKey",
        file_context: None,
    },
    Pattern {
        name: "sendinblueApiToken",
        file_context: None,
    },
    Pattern {
        name: "pusherAppSecret",
        file_context: None,
    },
    Pattern {
        name: "streamApiSecret",
        file_context: None,
    },
    Pattern {
        name: "postmarkServerToken",
        file_context: Some("postmark"),
    },
    Pattern {
        name: "vonageApiSecret",
        file_context: None,
    },
    Pattern {
        name: "customerIoApiKey",
        file_context: None,
    },
    Pattern {
        name: "twitterBearerToken",
        file_context: None,
    },
    Pattern {
        name: "facebookAccessToken",
        file_context: None,
    },
    Pattern {
        name: "facebookPageAccessToken",
        file_context: None,
    },
    Pattern {
        name: "instagramAccessToken",
        file_context: None,
    },
    Pattern {
        name: "discordSocialBotToken",
        file_context: None,
    },
    Pattern {
        name: "discordSocialWebhookUrl",
        file_context: None,
    },
    Pattern {
        name: "pinterestAccessToken",
        file_context: None,
    },
    Pattern {
        name: "linkedinApiToken",
        file_context: None,
    },
    Pattern {
        name: "youtubeApiKey",
        file_context: None,
    },
    Pattern {
        name: "tiktokApiToken",
        file_context: None,
    },
    Pattern {
        name: "gitlabPersonalAccessToken",
        file_context: None,
    },
    Pattern {
        name: "gitlabDeployToken",
        file_context: None,
    },
    Pattern {
        name: "gitlabRunnerToken",
        file_context: None,
    },
    Pattern {
        name: "gitlabCiJobToken",
        file_context: None,
    },
    Pattern {
        name: "gitlabPipelineTriggerToken",
        file_context: None,
    },
    Pattern {
        name: "bitbucketAppPassword",
        file_context: None,
    },
    Pattern {
        name: "githubTokens",
        file_context: None,
    },
    Pattern {
        name: "githubFineGrainedToken",
        file_context: Some("(?:\\.env|config|settings|secrets)"),
    },
    Pattern {
        name: "githubAppInstallationToken",
        file_context: None,
    },
    Pattern {
        name: "gitlabScimToken",
        file_context: None,
    },
    Pattern {
        name: "gitlabFeatureFlagToken",
        file_context: None,
    },
    Pattern {
        name: "gitlabFeedToken",
        file_context: None,
    },
    Pattern {
        name: "gitlabIncomingMailToken",
        file_context: None,
    },
    Pattern {
        name: "gitlabK8sAgentToken",
        file_context: None,
    },
    Pattern {
        name: "gitlabOAuthAppSecret",
        file_context: None,
    },
    Pattern {
        name: "gitlabSessionCookie",
        file_context: None,
    },
    Pattern {
        name: "bitbucketRepoToken",
        file_context: None,
    },
];

/// Single-pass multi-pattern detection (256MB limit for 309 patterns).
pub static REGEX_SET: LazyLock<RegexSet> = LazyLock::new(|| {
    RegexSetBuilder::new([
        r###"\b(sk-[a-zA-Z0-9_-]+T3BlbkFJ[a-zA-Z0-9_-]+)\b"###,
        r###"\bsk-proj-[a-zA-Z0-9_-]{20,}\b"###,
        r###"\bsk-svcacct-[a-zA-Z0-9_-]{20,}\b"###,
        r###"\bsk-admin-[a-zA-Z0-9_-]{20,}\b"###,
        r###"\borg-[a-zA-Z0-9]{20,}\b"###,
        r###"\bgsk_[a-zA-Z0-9-_]{51,52}\b"###,
        r###"\bco-[a-zA-Z0-9-_]{38,64}\b"###,
        r###"\bhf_[a-zA-Z0-9]{34}\b"###,
        r###"\bpplx-[a-zA-Z0-9]{30,64}\b"###,
        r###"\br8_[a-zA-Z0-9]{30,}\b"###,
        r###"\bsk-ant-(?:admin01|api03|sid01)-[\w-]{80,120}\b"###,
        r###"\b(?:mistral-|mist_)[a-zA-Z0-9]{32,}\b"###,
        r###"\btvly-[a-zA-Z0-9]{30,}\b"###,
        r###"\b['"]?(?:DEEPSEEK|deepseek|DeepSeek)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?sk-[a-zA-Z0-9]{32,64}['"]?\b"###,
        r###"\b['"]?(?:TOGETHER|together)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{40,64}['"]?\b"###,
        r###"\b['"]?(?:FIREWORKS|fireworks)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{40,64}['"]?\b"###,
        r###"\bxai-[a-zA-Z0-9]{48,}\b"###,
        r###"\bsk-or-v1-[a-zA-Z0-9]{64}\b"###,
        r###"\bABSK[A-Za-z0-9+/]{109,269}={0,2}\b"###,
        r###"\b['"]?(?:AI21|ai21)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{40,64}['"]?\b"###,
        r###"\b['"]?(?:STABILITY|stability|Stability)_?(?:AI|ai)?_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?sk-[a-zA-Z0-9]{48,}['"]?\b"###,
        r###"\bpa-[a-zA-Z0-9]{40,}\b"###,
        r###"(?i)\b['"]?(?:ELEVENLABS|elevenlabs)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{32,}['"]?\b"###,
        r###"\b['"]?(?:ASSEMBLYAI|assemblyai|AssemblyAI)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32}['"]?\b"###,
        r###"\bpcsk_[a-zA-Z0-9_]{50,}\b"###,
        r###"\b[a-f0-9]{40}\b"###,
        r###"\b['"]?(?:COMET|comet)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{32,64}['"]?\b"###,
        r###"\blsv2_[a-zA-Z0-9_]{20,}\b"###,
        r###"\b['"]?(?:UNSTRUCTURED|unstructured)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{32,}['"]?\b"###,
        r###"\b(?:vcp|vci|vca|vcr|vck)_[a-zA-Z0-9]{24,}\b"###,
        r###"\bphc_[a-zA-Z0-9_-]{39}\b"###,
        r###"\bphx_[a-zA-Z0-9_-]{39}\b"###,
        r###"\bphs_[a-zA-Z0-9_-]{39}\b"###,
        r###"\bpha_[a-zA-Z0-9_-]{39}\b"###,
        r###"\bphr_[a-zA-Z0-9_-]{39}\b"###,
        r###"(?i)\bdatadog[\s\w]*(?:api|app)[\s\w]*key[\s:=]*["']?[a-fA-F0-9]{32,40}["']?"###,
        r###"\bhcaik_[a-zA-Z0-9_-]{32,64}\b"###,
        r###"\b(ey[a-zA-Z0-9]{17,}\.ey[a-zA-Z0-9/_-]{17,}\.(?:[a-zA-Z0-9/_-]{10,}={0,2})?)\b"###,
        r###"(?i)(?:JSESSIONID|PHPSESSID|ASP\.NET_SessionId|connect\.sid|session_id)=([a-zA-Z0-9%:._-]+)"###,
        r###"\bya29\.[a-zA-Z0-9_-]+\b"###,
        r###"\b['"]?(?:GOOGLE|google)?_?(?:OAUTH|oauth)?_?(?:REFRESH|refresh)?_?(?:TOKEN|token)['"]?\s*(?::|=>|=)\s*['"]?(1\/\/0[a-zA-Z0-9._-]{40,})['"]?\b"###,
        r###"\bA3-[A-Z0-9]{6}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}\b"###,
        r###"\bops_eyJ[a-zA-Z0-9+/]+={0,2}\b"###,
        r###"\bey[a-zA-Z0-9]+\.ey[a-zA-Z0-9/_-]+\.(?:[a-zA-Z0-9/_-]+={0,2})?\b"###,
        r###"(?i)\b(?:sc|ext|scauth|authress)_[a-z0-9]+\.[a-z0-9]+\.acc[_-][a-z0-9-]+\.[a-z0-9+/_=-]+\b"###,
        r###"(?i)\b['"]?(?:AUTH0|auth0)_?(?:CLIENT|client)?_?(?:SECRET|secret)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9_-]{32,64}['"]?\b"###,
        r###"(?i)\b['"]?(?:AUTH0|auth0)_?(?:MANAGEMENT|management|MGMT)?_?(?:API)?_?(?:TOKEN|token)['"]?\s*(?::|=>|=)\s*['"]?eyJ[a-zA-Z0-9_-]{50,}['"]?\b"###,
        r###"(?i)\b['"]?(?:SUPERTOKENS|supertokens)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9_-]{30,}['"]?\b"###,
        r###"(?i)\bBasic\s+[A-Za-z0-9+/]{20,}={0,2}\b"###,
        r###"(?i)\bAuthorization\s*:\s*Bearer\s+[A-Za-z0-9._~+/=-]{20,}\b"###,
        r###"\b((?:AKIA|ABIA|ACCA|ASIA)[A-Z0-9]{16})\b"###,
        r###"\b['"]?(?:AWS|aws|Aws)?_?(?:ACCOUNT|account|Account)_?(?:ID|id|Id)?['"]?\s*(?::|=>|=)\s*['"]?[0-9]{12}['"]?\b"###,
        r###"\bda2-[a-z0-9]{26}\b"###,
        r###"\barn:aws:iam::[0-9]{12}:role\/[a-zA-Z0-9_+=,.@-]+\b"###,
        r###"\barn:aws:lambda:[a-z0-9-]+:[0-9]{12}:function:[a-zA-Z0-9_-]+\b"###,
        r###"\bamzn\.mws\.[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b"###,
        r###"\barn:aws:s3:::[a-zA-Z0-9._-]+\b"###,
        r###"\bLTAI[a-zA-Z0-9]{20}\b"###,
        r###"\b['"]?(?:AWS|aws|Aws)?_?(?:SECRET|secret|Secret)_?(?:ACCESS|access|Access)_?(?:KEY|key|Key)['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9/+=]{40}['"]?\b"###,
        r###"\b['"]?(?:AWS|aws|Aws)?_?(?:SESSION|session|Session)_?(?:TOKEN|token|Token)['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9/+=]{200,}['"]?\b"###,
        r###"\barn:aws:secretsmanager:[a-z0-9-]+:[0-9]{12}:secret:[a-zA-Z0-9/_+=.@-]+\b"###,
        r###"\bAIza[a-zA-Z0-9_-]{30,}\b"###,
        r###"\b[0-9]+-[a-z0-9]+\.apps\.googleusercontent\.com\b"###,
        r###"\b"client_secret":\s*"[a-zA-Z0-9-_]{24}"\b"###,
        r###"\b[a-z0-9-]+@[a-z0-9-]+\.iam\.gserviceaccount\.com\b"###,
        r###"\bDefaultEndpointsProtocol=https?;AccountName=[a-z0-9]+;AccountKey=[a-zA-Z0-9+/]+={0,2};EndpointSuffix=core\.windows\.net\b"###,
        r###"(?i)\b['"]?(?:AZURE|azure)?_?(?:SUBSCRIPTION|subscription)_?(?:ID|id)?['"]?\s*(?::|=>|=)\s*['"]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}['"]?\b"###,
        r###"(?i)\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.onmicrosoft\.com\b"###,
        r###"\bAccountEndpoint=https:\/\/[a-z0-9-]+\.documents\.azure\.com:443\/;AccountKey=[a-zA-Z0-9+/]+={0,2}\b"###,
        r###"\bEndpoint=sb:\/\/[a-z0-9-]+\.servicebus\.windows\.net\/;SharedAccessKeyName=[a-zA-Z0-9]+;SharedAccessKey=[a-zA-Z0-9+/]+={0,2}\b"###,
        r###"\bsl\.[a-zA-Z0-9_-]{64}\b"###,
        r###"\b[a-z0-9]{15}\.(?:app|apps)\.dropbox\.com\b"###,
        r###"\bsbp_[a-f0-9]{40}\b"###,
        r###"\bsb_secret_[a-zA-Z0-9_-]{22}_[a-fA-F0-9]{8}\b"###,
        r###"\bmysql:\/\/[a-zA-Z0-9_-]+:[a-zA-Z0-9_=-]+@[a-z0-9.-]+\.psdb\.cloud\/[a-zA-Z0-9_-]+\?sslaccept=strict\b"###,
        r###"\bpscale_tkn_[a-zA-Z0-9_-]{38,43}\b"###,
        r###"\bSG\.[A-Za-z0-9_-]{20,22}\.[A-Za-z0-9_-]{43}\b"###,
        r###"\bkey-[0-9a-z]{32}\b"###,
        r###"\b[0-9a-f]{32}-us[0-9]{1,2}\b"###,
        r###"\b[0-9]{8,10}:[A-Za-z0-9_-]{35}\b"###,
        r###"\bSK[a-z0-9]{32}\b"###,
        r###"\bAC[0-9a-fA-F]{32}\b"###,
        r###"\bdckr_pat_[a-zA-Z0-9_]{36}\b"###,
        r###"\bpypi-[a-zA-Z0-9_-]{84}\b"###,
        r###"\bfigd_[a-zA-Z0-9_-]{43}\b"###,
        r###"\brnd_[a-zA-Z0-9_-]{43}\b"###,
        r###"\bpat[a-zA-Z0-9]{14}\.[a-zA-Z0-9]{64}\b"###,
        r###"\btfp_[a-zA-Z0-9_-]{43}\b"###,
        r###"\bdG9rOi[a-zA-Z0-9+/]{46,48}={0,2}\b"###,
        r###"\bdop_v1_[a-f0-9]{64}\b"###,
        r###"\bdoo_v1_[a-f0-9]{64}\b"###,
        r###"\bdor_v1_[a-f0-9]{64}\b"###,
        r###"(?i)\b['"]?(?:cloudflare)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9_-]{40}['"]?\b"###,
        r###"(?i)\b['"]?(?:cloudflare)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{37}['"]?\b"###,
        r###"\bv1\.0-[a-f0-9]{24}-[a-f0-9]{146}\b"###,
        r###"\bfo1_[\w-]{43}\b"###,
        r###"\bfm[12][ar]?_[a-zA-Z0-9+/]{100,}={0,3}\b"###,
        r###"(?i)\bdp\.pt\.[a-z0-9]{43}\b"###,
        r###"(?i)\bdt0c01\.[a-z0-9]{24}\.[a-z0-9]{64}\b"###,
        r###"(?i)\b['"]?(?:netlify)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9=_-]{40,46}['"]?\b"###,
        r###"\btk-us-[\w-]{48}\b"###,
        r###"\bico-[a-zA-Z0-9]{32}\b"###,
        r###"\b(?:pat|sat)\.[a-zA-Z0-9_-]{22}\.[a-zA-Z0-9]{24}\.[a-zA-Z0-9]{20}\b"###,
        r###"(?:^|[\\'"` \s>=:(,)])([a-zA-Z0-9_~.]{3}\dQ~[a-zA-Z0-9_~.-]{31,34})(?:$|[\\'"` \s<),])"###,
        r###"\bHRKU-AA[0-9a-zA-Z_-]{58}\b"###,
        r###"(?i)https:\/\/[a-z0-9]+\.webhook\.office\.com\/webhookb2\/[a-z0-9]{8}-(?:[a-z0-9]{4}-){3}[a-z0-9]{12}@[a-z0-9]{8}-(?:[a-z0-9]{4}-){3}[a-z0-9]{12}\/IncomingWebhook\/[a-z0-9]{32}\/[a-z0-9]{8}-(?:[a-z0-9]{4}-){3}[a-z0-9]{12}"###,
        r###"(?i)\b['"]?(?:okta)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?00[\w=-]{40}['"]?\b"###,
        r###"\bsha256~[\w-]{43}\b"###,
        r###"\bddp_[a-zA-Z0-9]{40}\b"###,
        r###"\bre_[a-zA-Z0-9]{30,}\b"###,
        r###"(?i)\b['"]?(?:AZURE_OPENAI|azure_openai)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32}['"]?\b"###,
        r###"(?i)\b['"]?(?:RAILWAY|railway)_?(?:API|api)?_?(?:TOKEN|token)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}['"]?\b"###,
        r###"\b(?:prod|dev):[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]{40,}\b"###,
        r###"(?i)\b['"]?(?:UPSTASH_KAFKA)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9=_-]{40,}['"]?\b"###,
        r###"\bcf(?:k|ut|at)_[a-zA-Z0-9]{40}[a-fA-F0-9]{8}\b"###,
        r###"(?i)\bjwt[_-]?secret\s*[:=]\s*['"][^'"]{16,}['"]\b"###,
        r###"(?i)\bkind:\s*["']?Secret["']?[\s\S]{0,2000}?\bdata:\s*[\s\S]{0,2000}?[a-zA-Z0-9_-]+:\s*[a-zA-Z0-9+/]{16,}={0,3}\b"###,
        r###"(?i)\b(?:MYSQL_ROOT_PASSWORD|POSTGRES_PASSWORD|REDIS_PASSWORD|MONGODB_PASSWORD)\s*[:=]\s*['"][^'"]{4,}['"]\b"###,
        r###"(?i)\b(?:spring\.datasource\.password|spring\.security\.oauth2\.client\.registration\..*\.client-secret)\s*[:=]\s*['"][^'"]{4,}['"]\b"###,
        r###"(?i)\b(?:ConnectionStrings?|connectionString)\s*[:=]\s*['"][^'"]*(?:password|pwd)\s*=\s*[^;'"]{4,}[^'"]*['"]\b"###,
        r###"(?i)\b(?:secret|password|key|token)[_-]?(?:base64|encoded)?\s*[:=]\s*['"][A-Za-z0-9+/]{32,}={0,3}['"]\b"###,
        r###"-----BEGIN\s+(?:RSA\s+)?PRIVATE\s+KEY-----[\s\S]*?-----END\s+(?:RSA\s+)?PRIVATE\s+KEY-----"###,
        r###"\b-----BEGIN (?:ENCRYPTED )?PRIVATE KEY-----\s*[\s\S]*?-----END (?:ENCRYPTED )?PRIVATE KEY-----\b"###,
        r###"\b-----BEGIN EC PRIVATE KEY-----\s*[\s\S]*?-----END EC PRIVATE KEY-----\b"###,
        r###"\b-----BEGIN DSA PRIVATE KEY-----\s*[\s\S]*?-----END DSA PRIVATE KEY-----\b"###,
        r###"-----BEGIN\s+OPENSSH\s+PRIVATE\s+KEY-----[\s\S]*?-----END\s+OPENSSH\s+PRIVATE\s+KEY-----"###,
        r###"\b-----BEGIN SSH2 ENCRYPTED PRIVATE KEY-----\s*[\s\S]*?-----END SSH2 ENCRYPTED PRIVATE KEY-----\b"###,
        r###"\bPuTTY-User-Key-File-[23]:\s*[\s\S]*?Private-MAC:\b"###,
        r###"\b-----BEGIN PGP PRIVATE KEY BLOCK-----\s*[\s\S]*?-----END PGP PRIVATE KEY BLOCK-----\b"###,
        r###"\b"private_key":\s*"-----BEGIN PRIVATE KEY-----\\n[a-zA-Z0-9+/=\\n]+\\n-----END PRIVATE KEY-----"\b"###,
        r###"\b<key>\s*-----BEGIN[^<]*-----END[^<]*<\/key>\b"###,
        r###"\b-----BEGIN DH PARAMETERS-----\s*[\s\S]*?-----END DH PARAMETERS-----\b"###,
        r###"\bAGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}\b"###,
        r###"\bhvb\.[a-zA-Z0-9_-]{20,}\b"###,
        r###"\bhvs\.[a-zA-Z0-9_-]{20,}\b"###,
        r###"\bhvp\.[a-zA-Z0-9_-]{20,}\b"###,
        r###"(?i)\b(?:private[_-]?key|secret[_-]?key)\s*[:=]\s*["'][A-Za-z0-9+/]{64,}={0,2}["']\b"###,
        r###"(?i)\b(?:key|secret)\s*[:=]\s*["'][a-fA-F0-9]{32,}["']\b"###,
        r###"(?i)\bpostgresql:\/\/[^:]+:[^@]+@[^/\s]+\/[^?\s]+\b"###,
        r###"(?i)\bmysql:\/\/[^:]+:[^@]+@[^/\s]+\/[^?\s]+\b"###,
        r###"(?i)\bjdbc:(?:postgresql|mysql):\/\/[^:]+:[^@]+@[^/\s]+\b"###,
        r###"\bmongodb(?:\+srv)?:\/\/[a-zA-Z0-9._%-]+:[a-zA-Z0-9._%-]+@[a-zA-Z0-9._-]+(?::[0-9]+)?(?:\/[a-zA-Z0-9._-]*)?\b"###,
        r###"\brediss?:\/\/[a-zA-Z0-9._%-]+:[a-zA-Z0-9._%-]+@[a-zA-Z0-9._-]+:[0-9]+\b"###,
        r###"(?m)^[ \t]*(?:(?:redis-cli(?:[ \t]+|>)|[a-zA-Z0-9_.-]+:\d+>[ \t]*))?AUTH[ \t]+(?:[a-zA-Z0-9_.@-]+[ \t]+)?[a-zA-Z0-9_-]{8,}\b"###,
        r###"(?i)\bhttps?:\/\/[^:]+:[^@]+@[^/\s]+:9200\b"###,
        r###"(?i)\bhttp[s]?:\/\/[^:]+:[^@]+@[^/\s]+:5984\b"###,
        r###"(?i)\bbolt[s]?:\/\/[^:]+:[^@]+@[^/\s]+:7687\b"###,
        r###"(?i)\btimescaledb:\/\/[^:]+:[^@]+@[^/\s]+\/[^?\s]+\b"###,
        r###"(?i)\bclickhouse:\/\/[^:]+:[^@]+@[^/\s]+:8123\b"###,
        r###"(?i)\bcassandra:\/\/[^:]+:[^@]+@[^/\s]+:9042\b"###,
        r###"\bfn[a-zA-Z0-9]{40}\b"###,
        r###"\bdapi[a-f0-9]{32}(?:-\d)?\b"###,
        r###"(?i)\bpinecone[\s\w]*(?:api|key|env)[\s:=]*["']?[a-zA-Z0-9_-]{32}["']?\b"###,
        r###"(?i)\b(?:postgres|mysql|mongodb|redis):\/\/[^:]+:[^@]+@[^/\s]+\b"###,
        r###"\b4b1d[A-Za-z0-9]{38}\b"###,
        r###"(?i)\bpostgres:\/\/[^:]+:[^@]+@[^/\s]*neon\.tech[^?\s]*\b"###,
        r###"(?i)\b['"]?(?:turso|libsql)(?:[\s\w.-]{0,20})(?:token|auth)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9._-]{50,}['"]?\b"###,
        r###"(?i)\b['"]?(?:upstash)(?:[\s\w.-]{0,20})(?:token|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9=]{40,}['"]?\b"###,
        r###"\b['"]?(?:SUPABASE|supabase)_?(?:ANON|SERVICE_ROLE|anon|service_role)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?(eyJ[a-zA-Z0-9_-]{100,})['"]?\b"###,
        r###"(?i)\bpostgresql:\/\/[^:]+:[^@]+@[^/\s]*cockroachlabs\.cloud[^?\s]*\b"###,
        r###"\bnpm_[a-zA-Z0-9]{36}\b"###,
        r###"\boy2[a-z0-9]{43}\b"###,
        r###"\bAKCp[A-Za-z0-9]{69}\b"###,
        r###"(?i)\bheroku.*[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\b"###,
        r###"\b[a-zA-Z0-9]{14}\.[a-zA-Z0-9]{6}\.[a-zA-Z0-9]{16}\b"###,
        r###"\bpul-[a-f0-9]{40}\b"###,
        r###"\bATATT3[A-Za-z0-9_\-=]{186}\b"###,
        r###"\bsgp_[a-zA-Z0-9]{32}\b"###,
        r###"\blin_api_[0-9A-Za-z]{40}\b"###,
        r###"\bntn_[a-zA-Z0-9_-]{43}\b"###,
        r###"\bsecret_[a-zA-Z0-9]{43}\b"###,
        r###"\bhawk\.[0-9A-Za-z\-_]{20}\.[0-9A-Za-z\-_]{20}\b"###,
        r###"(?i)\bsentry[\s\w]*(?:auth|token)[\s:=]*["']?[a-f0-9]{64}["']?\b"###,
        r###"(?i)\bbugsnag[\s\w]*(?:api|key)[\s:=]*["']?[a-f0-9]{32}["']?\b"###,
        r###"(?i)\brollbar[\s\w]*(?:access|token)[\s:=]*["']?[a-f0-9]{32}["']?\b"###,
        r###"(?i)\bPMAK-[a-f0-9]{24}-[a-f0-9]{34}\b"###,
        r###"\bpnu_[a-zA-Z0-9]{36}\b"###,
        r###"\brdme_[a-z0-9]{70}\b"###,
        r###"\brubygems_[a-f0-9]{48}\b"###,
        r###"(?i)\bCLOJARS_[a-z0-9]{60}\b"###,
        r###"(?i)\b['"]?(?:snyk[_.-]?(?:(?:api|oauth)[_.-]?)?(?:key|token))['"]?\s*(?::|=>|=)\s*['"]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}['"]?\b"###,
        r###"(?i)\b(?:squ_|sqp_|sqa_)[a-z0-9=_-]{40}\b"###,
        r###"(?i)\b['"]?(?:travis)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{22}['"]?\b"###,
        r###"(?i)\b['"]?(?:codecov)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b"###,
        r###"(?i)\b['"]?(?:droneci|drone)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b"###,
        r###"\bAPI-[A-Z0-9]{26}\b"###,
        r###"(?i)\b['"]?(?:circleci|circle)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{40}['"]?\b"###,
        r###"\bbkagent_[a-f0-9]{40}\b"###,
        r###"(?i)\b['"]?(?:launchdarkly)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9=_-]{40}['"]?\b"###,
        r###"(?i)\b['"]?(?:algolia)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b"###,
        r###"\bsk_(?:live|test)_[a-zA-Z0-9]{24,}\b"###,
        r###"\bpk_(?:live|test)_[a-zA-Z0-9]{24,}\b"###,
        r###"\bsdk-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}\b"###,
        r###"\b['"]?(?:VERCEL_OIDC_TOKEN)['"]?\s*(?::|=>|=)\s*['"]?eyJ[a-zA-Z0-9_-]{100,}['"]?\b"###,
        r###"(?i)\b['"]?(?:NOVU|novu)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{32,}['"]?\b"###,
        r###"\btr_(?:dev|prod)_[a-zA-Z0-9]{20,}\b"###,
        r###"\b['"]?(?:NX_CLOUD_ACCESS_TOKEN|nxCloudAccessToken)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{36,}['"]?\b"###,
        r###"\bdpt_[a-zA-Z0-9]{40,}\b"###,
        r###"(?i)\b['"]?(?:GRAFBASE|grafbase)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?eyJ[a-zA-Z0-9_-]{50,}['"]?\b"###,
        r###"\bshpatf_[0-9a-f]{32}\b"###,
        r###"\bck_[a-f0-9]{40}\b"###,
        r###"\bcs_[a-f0-9]{40}\b"###,
        r###"\bCFPAT-[0-9a-zA-Z]{20}\b"###,
        r###"\b[0-9a-f]{32}-[a-z]{2,3}[0-9]{1,2}\b"###,
        r###"\b[a-zA-Z]{3,10}:\/\/[^\\/\s:@]{3,20}:[^\\/\s:@]{3,20}@[^\s'"]+\b"###,
        r###"(?i)\b(?:\w+_)?(?:SECRET|secret|password|key|token|jwt_secret)(?:_\w+)?\s*=\s*["'][^"']{16,}["']"###,
        r###"\bsk\.eyJ[a-zA-Z0-9._-]{87}\b"###,
        r###"\bpk\.eyJ[a-zA-Z0-9._-]{80,}\b"###,
        r###"\bglc_[a-zA-Z0-9]{32}\b"###,
        r###"\bNRAK-[A-Z0-9]{27}\b"###,
        r###"\bNRIK-[A-Z0-9]{32}\b"###,
        r###"\bNRJS-[a-f0-9]{19}\b"###,
        r###"(?i)\bNRII-[a-z0-9-]{32}\b"###,
        r###"(?i)\beyJrIjoi[A-Za-z0-9]{70,400}={0,3}\b"###,
        r###"\bglsa_[A-Za-z0-9]{32}_[A-Fa-f0-9]{8}\b"###,
        r###"\bsntrys_eyJpYXQiO[a-zA-Z0-9+/]{10,200}(?:LCJyZWdpb25fdXJs|InJlZ2lvbl91cmwi|cmVnaW9uX3VybCI6)[a-zA-Z0-9+/]{10,200}={0,2}_[a-zA-Z0-9+/]{43}\b"###,
        r###"\bsntryu_[a-f0-9]{64}\b"###,
        r###"(?i)\b['"]?(?:sumo)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?su[a-zA-Z0-9]{12}['"]?\b"###,
        r###"(?i)\b['"]?(?:splunk)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}['"]?\b"###,
        r###"(?i)\b['"]?(?:logdna|mezmo)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32}['"]?\b"###,
        r###"(?i)\b['"]?(?:loggly)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}['"]?\b"###,
        r###"\b[rs]k_(?:live|test)_[a-zA-Z0-9]{20,247}\b"###,
        r###"\bwhsec_[a-zA-Z0-9]{32,}\b"###,
        r###"\bpk_(?:live|test)_[a-zA-Z0-9]{20,247}\b"###,
        r###"\bA21AA[a-zA-Z0-9_-]{50,}\b"###,
        r###"\baccess_token\$(?:production|sandbox)\$[0-9a-z]{16}\$[0-9a-f]{32}\b"###,
        r###"\b(?:EAAAE[A-Za-z0-9_-]{94,}|sq0[a-z]?atp-[0-9A-Za-z\-_]{22,26})\b"###,
        r###"\bsq0csp-[0-9A-Za-z\-_]{43}\b"###,
        r###"\bsq0ids-[a-zA-Z0-9_-]{43}\b"###,
        r###"\bshppa_[a-fA-F0-9]{32}\b"###,
        r###"\bshpat_[a-fA-F0-9]{32}\b"###,
        r###"\bshpwh_[a-fA-F0-9]{32}\b"###,
        r###"\bAQE[a-zA-Z0-9]{70,}\b"###,
        r###"\brzp_(?:test|live)_[a-zA-Z0-9]{14}\b"###,
        r###"\bFLW(?:PUBK|SECK)_(?:TEST|LIVE)-[a-h0-9]{32}-X\b"###,
        r###"(?i)\b['"]?(?:coinbase)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9_-]{64}['"]?\b"###,
        r###"(?i)\b['"]?(?:kraken)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9/=_+-]{80,90}['"]?\b"###,
        r###"(?i)\b['"]?(?:kucoin)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{24}['"]?\b"###,
        r###"(?i)\b['"]?(?:kucoin)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}['"]?\b"###,
        r###"(?i)\b['"]?(?:bittrex)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b"###,
        r###"(?i)\b['"]?(?:binance)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9]{64}['"]?\b"###,
        r###"(?i)\b['"]?(?:bybit)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9]{18,24}['"]?\b"###,
        r###"(?i)\blive_[a-z0-9\-_=]{40}\b"###,
        r###"\baccess-(?:sandbox|development|production)-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b"###,
        r###"(?i)\b['"]?(?:PLAID|plaid)_?(?:CLIENT|client)_?(?:ID|id)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{24}['"]?\b"###,
        r###"(?i)\b['"]?(?:LEMONSQUEEZY|LEMON_SQUEEZY|lemonsqueezy)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?eyJ[a-zA-Z0-9_-]{100,}['"]?\b"###,
        r###"(?i)\b['"]?(?:PADDLE|paddle)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?pdl_(?:live|sdbx)_[a-zA-Z0-9]{40,}['"]?\b"###,
        r###"\b(?:live|test)_[a-zA-Z0-9]{30,}\b"###,
        r###"-----BEGIN\s+(?:(?:RSA|DSA|EC|OPENSSH|ENCRYPTED)\s+)?PRIVATE\s+KEY(?:\s+BLOCK)?-----[\s\S]*?-----END\s+(?:(?:RSA|DSA|EC|OPENSSH|ENCRYPTED)\s+)?PRIVATE\s+KEY(?:\s+BLOCK)?-----"###,
        r###"-----BEGIN\s+PGP\s+PRIVATE\s+KEY\s+BLOCK-----[\s\S]*?-----END\s+PGP\s+PRIVATE\s+KEY\s+BLOCK-----"###,
        r###"\bshippo_(?:live|test)_[a-fA-F0-9]{40}\b"###,
        r###"(?i)\bEZAK[a-z0-9]{54}\b"###,
        r###"(?i)\bEZTK[a-z0-9]{54}\b"###,
        r###"(?i)\bduffel_(?:test|live)_[a-z0-9_\-=]{43}\b"###,
        r###"(?i)\bfio-u-[a-z0-9\-_=]{64}\b"###,
        r###"\b[A-Za-z0-9]{6}_[A-Za-z0-9]{29}_mmk\b"###,
        r###"(?i)\b['"]?(?:asana)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[0-9]{16}['"]?\b"###,
        r###"(?i)\b['"]?(?:monday)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?eyJ[a-zA-Z0-9_-]{100,}['"]?\b"###,
        r###"(?i)\b['"]?(?:trello)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32}['"]?\b"###,
        r###"(?i)\b['"]?(?:jira)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{24}['"]?\b"###,
        r###"\bsm_aat_[a-zA-Z0-9]{16}\b"###,
        r###"\bsm_pat_[a-zA-Z0-9]{16}\b"###,
        r###"\bsm_sat_[a-zA-Z0-9]{16}\b"###,
        r###"\bxoxb-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b"###,
        r###"\bxoxp-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b"###,
        r###"\bxoxa-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b"###,
        r###"\bxoxr-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b"###,
        r###"(?i)(?:https?:\/\/)?hooks\.slack\.com\/(?:services|workflows|triggers)\/[A-Za-z0-9+/]{43,56}"###,
        r###"\bhttps:\/\/hooks\.slack\.com\/services\/[A-Z0-9]{8,12}\/[A-Z0-9]{8,12}\/[A-Za-z0-9]{20,32}\b"###,
        r###"(?i)\bxapp-\d-[A-Z0-9]+-\d+-[a-z0-9]+\b"###,
        r###"(?i)\bxoxe\.xox[bp]-\d-[A-Z0-9]{163,166}\b"###,
        r###"(?i)\b['"]?(?:sendbird)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{40}['"]?\b"###,
        r###"(?i)\b['"]?(?:messagebird|message_bird|message-bird)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{25}['"]?\b"###,
        r###"(?i)\b['"]?(?:mattermost)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{26}['"]?\b"###,
        r###"(?i)\b['"]?(?:zendesk)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{40}['"]?\b"###,
        r###"(?i)\b['"]?(?:freshdesk)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{20}['"]?\b"###,
        r###"\bxkeysib-[a-f0-9]{64}-[a-z0-9]{16}\b"###,
        r###"(?i)\b['"]?(?:PUSHER|pusher)_?(?:APP|app)?_?(?:SECRET|secret)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{20}['"]?\b"###,
        r###"(?i)\b['"]?(?:STREAM|stream|GETSTREAM)_?(?:API|api)?_?(?:SECRET|secret|KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{40,}['"]?\b"###,
        r###"\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b"###,
        r###"(?i)\b['"]?(?:VONAGE|NEXMO|vonage|nexmo)_?(?:API|api)?_?(?:SECRET|secret)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{16}['"]?\b"###,
        r###"(?i)\b['"]?(?:CUSTOMERIO|customer_io|CUSTOMER_IO)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32,}['"]?\b"###,
        r###"\bAAAAAAAAAAAAAAAAAAAAA[a-zA-Z0-9%]{50,}\b"###,
        r###"\bEAA[a-zA-Z0-9]{80,120}\b"###,
        r###"\bEAAB[a-zA-Z0-9+/]{100,}\b"###,
        r###"\bIGQV[a-zA-Z0-9_-]{100,}\b"###,
        r###"\b[MN][A-Za-z\d]{23}\.[A-Za-z\d\-_]{6}\.[A-Za-z\d\-_]{27}\b"###,
        r###"\bhttps:\/\/discord(?:app)?\.com\/api\/webhooks\/[0-9]{17,19}\/[A-Za-z0-9_-]{68}\b"###,
        r###"\bpina_[a-zA-Z0-9]{32}\b"###,
        r###"(?i)\b['"]?(?:linkedin|linked_in|linked-in)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{14,16}['"]?\b"###,
        r###"(?i)\b['"]?(?:youtube)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?AIza[a-zA-Z0-9_-]{35}['"]?\b"###,
        r###"(?i)\b['"]?(?:tiktok)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9_-]{40,}['"]?\b"###,
        r###"\bglpat-[A-Za-z0-9_-]{20,}\b"###,
        r###"\bgldt-[A-Za-z0-9_-]{20}\b"###,
        r###"\bglrt-[A-Za-z0-9_-]{20}\b"###,
        r###"\bglcbt-[0-9a-zA-Z]{1,5}_[0-9a-zA-Z_-]{20}\b"###,
        r###"\bglptt-[0-9a-f]{40}\b"###,
        r###"\bATBB[a-zA-Z0-9]{24}\b"###,
        r###"\b((?:ghp|gho|ghu|ghs|ghr|github_pat)_[a-zA-Z0-9_]{36,255})\b"###,
        r###"\bgithub_pat_[A-Za-z0-9_]{82}\b"###,
        r###"\bghs_[0-9a-zA-Z]{37}\b"###,
        r###"\bglsoat-[0-9a-zA-Z_-]{20}\b"###,
        r###"\bglffct-[0-9a-zA-Z_-]{20}\b"###,
        r###"\bglft-[0-9a-zA-Z_-]{20}\b"###,
        r###"\bglimt-[0-9a-zA-Z_-]{25}\b"###,
        r###"\bglagent-[0-9a-zA-Z_-]{50}\b"###,
        r###"\bgloas-[0-9a-zA-Z_-]{64}\b"###,
        r###"_gitlab_session=[0-9a-z]{32}"###,
        r###"\bATCTT3[a-zA-Z0-9]{24}\b"###,
    ])
    .size_limit(256 * 1024 * 1024)
    .dfa_size_limit(256 * 1024 * 1024)
    .build()
    .expect("All patterns must be valid Rust regex")
});

/// Per-pattern Regex instances for find+replace
pub static PATTERN_REGEXES: LazyLock<Vec<Regex>> = LazyLock::new(|| {
    vec![
        Regex::new(r###"\b(sk-[a-zA-Z0-9_-]+T3BlbkFJ[a-zA-Z0-9_-]+)\b"###).expect("openaiApiKeyLegacy"),
        Regex::new(r###"\bsk-proj-[a-zA-Z0-9_-]{20,}\b"###).expect("openaiProjectApiKey"),
        Regex::new(r###"\bsk-svcacct-[a-zA-Z0-9_-]{20,}\b"###).expect("openaiServiceAccountKey"),
        Regex::new(r###"\bsk-admin-[a-zA-Z0-9_-]{20,}\b"###).expect("openaiAdminKey"),
        Regex::new(r###"\borg-[a-zA-Z0-9]{20,}\b"###).expect("openaiOrgId"),
        Regex::new(r###"\bgsk_[a-zA-Z0-9-_]{51,52}\b"###).expect("groqApiKey"),
        Regex::new(r###"\bco-[a-zA-Z0-9-_]{38,64}\b"###).expect("cohereApiKey"),
        Regex::new(r###"\bhf_[a-zA-Z0-9]{34}\b"###).expect("huggingFaceToken"),
        Regex::new(r###"\bpplx-[a-zA-Z0-9]{30,64}\b"###).expect("perplexityApiKey"),
        Regex::new(r###"\br8_[a-zA-Z0-9]{30,}\b"###).expect("replicateApiToken"),
        Regex::new(r###"\bsk-ant-(?:admin01|api03|sid01)-[\w-]{80,120}\b"###).expect("anthropicApiKey"),
        Regex::new(r###"\b(?:mistral-|mist_)[a-zA-Z0-9]{32,}\b"###).expect("mistralApiKey"),
        Regex::new(r###"\btvly-[a-zA-Z0-9]{30,}\b"###).expect("tavilyApiKey"),
        Regex::new(r###"\b['"]?(?:DEEPSEEK|deepseek|DeepSeek)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?sk-[a-zA-Z0-9]{32,64}['"]?\b"###).expect("deepseekApiKey"),
        Regex::new(r###"\b['"]?(?:TOGETHER|together)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{40,64}['"]?\b"###).expect("togetherApiKey"),
        Regex::new(r###"\b['"]?(?:FIREWORKS|fireworks)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{40,64}['"]?\b"###).expect("fireworksApiKey"),
        Regex::new(r###"\bxai-[a-zA-Z0-9]{48,}\b"###).expect("xaiApiKey"),
        Regex::new(r###"\bsk-or-v1-[a-zA-Z0-9]{64}\b"###).expect("openRouterApiKey"),
        Regex::new(r###"\bABSK[A-Za-z0-9+/]{109,269}={0,2}\b"###).expect("amazonBedrockApiKey"),
        Regex::new(r###"\b['"]?(?:AI21|ai21)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{40,64}['"]?\b"###).expect("ai21ApiKey"),
        Regex::new(r###"\b['"]?(?:STABILITY|stability|Stability)_?(?:AI|ai)?_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?sk-[a-zA-Z0-9]{48,}['"]?\b"###).expect("stabilityApiKey"),
        Regex::new(r###"\bpa-[a-zA-Z0-9]{40,}\b"###).expect("voyageApiKey"),
        Regex::new(r###"(?i)\b['"]?(?:ELEVENLABS|elevenlabs)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{32,}['"]?\b"###).expect("elevenLabsApiKey"),
        Regex::new(r###"\b['"]?(?:ASSEMBLYAI|assemblyai|AssemblyAI)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32}['"]?\b"###).expect("assemblyaiApiKey"),
        Regex::new(r###"\bpcsk_[a-zA-Z0-9_]{50,}\b"###).expect("pineconeApiKeyPrefixed"),
        Regex::new(r###"\b[a-f0-9]{40}\b"###).expect("wandbApiKey"),
        Regex::new(r###"\b['"]?(?:COMET|comet)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{32,64}['"]?\b"###).expect("cometApiKey"),
        Regex::new(r###"\blsv2_[a-zA-Z0-9_]{20,}\b"###).expect("langchainApiKey"),
        Regex::new(r###"\b['"]?(?:UNSTRUCTURED|unstructured)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{32,}['"]?\b"###).expect("unstructuredApiKey"),
        Regex::new(r###"\b(?:vcp|vci|vca|vcr|vck)_[a-zA-Z0-9]{24,}\b"###).expect("vercelToken"),
        Regex::new(r###"\bphc_[a-zA-Z0-9_-]{39}\b"###).expect("posthogApiKey"),
        Regex::new(r###"\bphx_[a-zA-Z0-9_-]{39}\b"###).expect("posthogPersonalApiKey"),
        Regex::new(r###"\bphs_[a-zA-Z0-9_-]{39}\b"###).expect("posthogFeatureFlagsSecureApiKey"),
        Regex::new(r###"\bpha_[a-zA-Z0-9_-]{39}\b"###).expect("posthogOauthAccessToken"),
        Regex::new(r###"\bphr_[a-zA-Z0-9_-]{39}\b"###).expect("posthogOauthRefreshToken"),
        Regex::new(r###"(?i)\bdatadog[\s\w]*(?:api|app)[\s\w]*key[\s:=]*["']?[a-fA-F0-9]{32,40}["']?"###).expect("datadogApiKey"),
        Regex::new(r###"\bhcaik_[a-zA-Z0-9_-]{32,64}\b"###).expect("honeycombApiKey"),
        Regex::new(r###"\b(ey[a-zA-Z0-9]{17,}\.ey[a-zA-Z0-9/_-]{17,}\.(?:[a-zA-Z0-9/_-]{10,}={0,2})?)\b"###).expect("jwtToken"),
        Regex::new(r###"(?i)(?:JSESSIONID|PHPSESSID|ASP\.NET_SessionId|connect\.sid|session_id)=([a-zA-Z0-9%:._-]+)"###).expect("sessionIds"),
        Regex::new(r###"\bya29\.[a-zA-Z0-9_-]+\b"###).expect("googleOauthToken"),
        Regex::new(r###"\b['"]?(?:GOOGLE|google)?_?(?:OAUTH|oauth)?_?(?:REFRESH|refresh)?_?(?:TOKEN|token)['"]?\s*(?::|=>|=)\s*['"]?(1\/\/0[a-zA-Z0-9._-]{40,})['"]?\b"###).expect("googleOauthRefreshToken"),
        Regex::new(r###"\bA3-[A-Z0-9]{6}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}\b"###).expect("onePasswordSecretKey"),
        Regex::new(r###"\bops_eyJ[a-zA-Z0-9+/]+={0,2}\b"###).expect("onePasswordServiceAccountToken"),
        Regex::new(r###"\bey[a-zA-Z0-9]+\.ey[a-zA-Z0-9/_-]+\.(?:[a-zA-Z0-9/_-]+={0,2})?\b"###).expect("jsonWebTokenEnhanced"),
        Regex::new(r###"(?i)\b(?:sc|ext|scauth|authress)_[a-z0-9]+\.[a-z0-9]+\.acc[_-][a-z0-9-]+\.[a-z0-9+/_=-]+\b"###).expect("authressServiceClientAccessKey"),
        Regex::new(r###"(?i)\b['"]?(?:AUTH0|auth0)_?(?:CLIENT|client)?_?(?:SECRET|secret)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9_-]{32,64}['"]?\b"###).expect("auth0ClientSecret"),
        Regex::new(r###"(?i)\b['"]?(?:AUTH0|auth0)_?(?:MANAGEMENT|management|MGMT)?_?(?:API)?_?(?:TOKEN|token)['"]?\s*(?::|=>|=)\s*['"]?eyJ[a-zA-Z0-9_-]{50,}['"]?\b"###).expect("auth0ManagementToken"),
        Regex::new(r###"(?i)\b['"]?(?:SUPERTOKENS|supertokens)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9_-]{30,}['"]?\b"###).expect("supertokensApiKey"),
        Regex::new(r###"(?i)\bBasic\s+[A-Za-z0-9+/]{20,}={0,2}\b"###).expect("basicAuthHeader"),
        Regex::new(r###"(?i)\bAuthorization\s*:\s*Bearer\s+[A-Za-z0-9._~+/=-]{20,}\b"###).expect("bearerAuthHeader"),
        Regex::new(r###"\b((?:AKIA|ABIA|ACCA|ASIA)[A-Z0-9]{16})\b"###).expect("awsAccessKeyId"),
        Regex::new(r###"\b['"]?(?:AWS|aws|Aws)?_?(?:ACCOUNT|account|Account)_?(?:ID|id|Id)?['"]?\s*(?::|=>|=)\s*['"]?[0-9]{12}['"]?\b"###).expect("awsAccountId"),
        Regex::new(r###"\bda2-[a-z0-9]{26}\b"###).expect("awsAppSyncApiKey"),
        Regex::new(r###"\barn:aws:iam::[0-9]{12}:role\/[a-zA-Z0-9_+=,.@-]+\b"###).expect("awsIamRoleArn"),
        Regex::new(r###"\barn:aws:lambda:[a-z0-9-]+:[0-9]{12}:function:[a-zA-Z0-9_-]+\b"###).expect("awsLambdaFunctionArn"),
        Regex::new(r###"\bamzn\.mws\.[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b"###).expect("awsMwsAuthToken"),
        Regex::new(r###"\barn:aws:s3:::[a-zA-Z0-9._-]+\b"###).expect("awsS3BucketArn"),
        Regex::new(r###"\bLTAI[a-zA-Z0-9]{20}\b"###).expect("alibabaAccessKeyId"),
        Regex::new(r###"\b['"]?(?:AWS|aws|Aws)?_?(?:SECRET|secret|Secret)_?(?:ACCESS|access|Access)_?(?:KEY|key|Key)['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9/+=]{40}['"]?\b"###).expect("awsSecretAccessKey"),
        Regex::new(r###"\b['"]?(?:AWS|aws|Aws)?_?(?:SESSION|session|Session)_?(?:TOKEN|token|Token)['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9/+=]{200,}['"]?\b"###).expect("awsSessionToken"),
        Regex::new(r###"\barn:aws:secretsmanager:[a-z0-9-]+:[0-9]{12}:secret:[a-zA-Z0-9/_+=.@-]+\b"###).expect("awsSecretsManagerArn"),
        Regex::new(r###"\bAIza[a-zA-Z0-9_-]{30,}\b"###).expect("googleApiKey"),
        Regex::new(r###"\b[0-9]+-[a-z0-9]+\.apps\.googleusercontent\.com\b"###).expect("googleOAuth2ClientId"),
        Regex::new(r###"\b"client_secret":\s*"[a-zA-Z0-9-_]{24}"\b"###).expect("googleOAuthClientSecret"),
        Regex::new(r###"\b[a-z0-9-]+@[a-z0-9-]+\.iam\.gserviceaccount\.com\b"###).expect("gcpServiceAccountEmail"),
        Regex::new(r###"\bDefaultEndpointsProtocol=https?;AccountName=[a-z0-9]+;AccountKey=[a-zA-Z0-9+/]+={0,2};EndpointSuffix=core\.windows\.net\b"###).expect("azureStorageConnectionString"),
        Regex::new(r###"(?i)\b['"]?(?:AZURE|azure)?_?(?:SUBSCRIPTION|subscription)_?(?:ID|id)?['"]?\s*(?::|=>|=)\s*['"]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}['"]?\b"###).expect("azureSubscriptionId"),
        Regex::new(r###"(?i)\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.onmicrosoft\.com\b"###).expect("azureTenantDomain"),
        Regex::new(r###"\bAccountEndpoint=https:\/\/[a-z0-9-]+\.documents\.azure\.com:443\/;AccountKey=[a-zA-Z0-9+/]+={0,2}\b"###).expect("azureCosmosDbConnectionString"),
        Regex::new(r###"\bEndpoint=sb:\/\/[a-z0-9-]+\.servicebus\.windows\.net\/;SharedAccessKeyName=[a-zA-Z0-9]+;SharedAccessKey=[a-zA-Z0-9+/]+={0,2}\b"###).expect("azureServiceBusConnectionString"),
        Regex::new(r###"\bsl\.[a-zA-Z0-9_-]{64}\b"###).expect("dropboxAccessToken"),
        Regex::new(r###"\b[a-z0-9]{15}\.(?:app|apps)\.dropbox\.com\b"###).expect("dropboxAppKey"),
        Regex::new(r###"\bsbp_[a-f0-9]{40}\b"###).expect("supabaseServiceKey"),
        Regex::new(r###"\bsb_secret_[a-zA-Z0-9_-]{22}_[a-fA-F0-9]{8}\b"###).expect("supabaseSecretKey"),
        Regex::new(r###"\bmysql:\/\/[a-zA-Z0-9_-]+:[a-zA-Z0-9_=-]+@[a-z0-9.-]+\.psdb\.cloud\/[a-zA-Z0-9_-]+\?sslaccept=strict\b"###).expect("planetScaleConnectionString"),
        Regex::new(r###"\bpscale_tkn_[a-zA-Z0-9_-]{38,43}\b"###).expect("planetScaleToken"),
        Regex::new(r###"\bSG\.[A-Za-z0-9_-]{20,22}\.[A-Za-z0-9_-]{43}\b"###).expect("sendgridApiKey"),
        Regex::new(r###"\bkey-[0-9a-z]{32}\b"###).expect("mailgunApiKey"),
        Regex::new(r###"\b[0-9a-f]{32}-us[0-9]{1,2}\b"###).expect("mailchimpApiKey"),
        Regex::new(r###"\b[0-9]{8,10}:[A-Za-z0-9_-]{35}\b"###).expect("telegramBotToken"),
        Regex::new(r###"\bSK[a-z0-9]{32}\b"###).expect("twilioApiKey"),
        Regex::new(r###"\bAC[0-9a-fA-F]{32}\b"###).expect("twilioAccountSid"),
        Regex::new(r###"\bdckr_pat_[a-zA-Z0-9_]{36}\b"###).expect("dockerHubToken"),
        Regex::new(r###"\bpypi-[a-zA-Z0-9_-]{84}\b"###).expect("pypiApiToken"),
        Regex::new(r###"\bfigd_[a-zA-Z0-9_-]{43}\b"###).expect("figmaToken"),
        Regex::new(r###"\brnd_[a-zA-Z0-9_-]{43}\b"###).expect("renderToken"),
        Regex::new(r###"\bpat[a-zA-Z0-9]{14}\.[a-zA-Z0-9]{64}\b"###).expect("airtablePersonalAccessToken"),
        Regex::new(r###"\btfp_[a-zA-Z0-9_-]{43}\b"###).expect("typeformToken"),
        Regex::new(r###"\bdG9rOi[a-zA-Z0-9+/]{46,48}={0,2}\b"###).expect("intercomAccessToken"),
        Regex::new(r###"\bdop_v1_[a-f0-9]{64}\b"###).expect("digitalOceanToken"),
        Regex::new(r###"\bdoo_v1_[a-f0-9]{64}\b"###).expect("digitalOceanOAuthToken"),
        Regex::new(r###"\bdor_v1_[a-f0-9]{64}\b"###).expect("digitalOceanRefreshToken"),
        Regex::new(r###"(?i)\b['"]?(?:cloudflare)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9_-]{40}['"]?\b"###).expect("cloudflareApiKey"),
        Regex::new(r###"(?i)\b['"]?(?:cloudflare)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{37}['"]?\b"###).expect("cloudflareGlobalApiKey"),
        Regex::new(r###"\bv1\.0-[a-f0-9]{24}-[a-f0-9]{146}\b"###).expect("cloudflareOriginCaKey"),
        Regex::new(r###"\bfo1_[\w-]{43}\b"###).expect("flyioAccessToken"),
        Regex::new(r###"\bfm[12][ar]?_[a-zA-Z0-9+/]{100,}={0,3}\b"###).expect("flyioMachineToken"),
        Regex::new(r###"(?i)\bdp\.pt\.[a-z0-9]{43}\b"###).expect("dopplerApiToken"),
        Regex::new(r###"(?i)\bdt0c01\.[a-z0-9]{24}\.[a-z0-9]{64}\b"###).expect("dynatraceApiToken"),
        Regex::new(r###"(?i)\b['"]?(?:netlify)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9=_-]{40,46}['"]?\b"###).expect("netlifyAccessToken"),
        Regex::new(r###"\btk-us-[\w-]{48}\b"###).expect("scalingoApiToken"),
        Regex::new(r###"\bico-[a-zA-Z0-9]{32}\b"###).expect("infracostApiToken"),
        Regex::new(r###"\b(?:pat|sat)\.[a-zA-Z0-9_-]{22}\.[a-zA-Z0-9]{24}\.[a-zA-Z0-9]{20}\b"###).expect("harnessApiKey"),
        Regex::new(r###"(?:^|[\\'"` \s>=:(,)])([a-zA-Z0-9_~.]{3}\dQ~[a-zA-Z0-9_~.-]{31,34})(?:$|[\\'"` \s<),])"###).expect("azureAdClientSecret"),
        Regex::new(r###"\bHRKU-AA[0-9a-zA-Z_-]{58}\b"###).expect("herokuApiKeyV2"),
        Regex::new(r###"(?i)https:\/\/[a-z0-9]+\.webhook\.office\.com\/webhookb2\/[a-z0-9]{8}-(?:[a-z0-9]{4}-){3}[a-z0-9]{12}@[a-z0-9]{8}-(?:[a-z0-9]{4}-){3}[a-z0-9]{12}\/IncomingWebhook\/[a-z0-9]{32}\/[a-z0-9]{8}-(?:[a-z0-9]{4}-){3}[a-z0-9]{12}"###).expect("microsoftTeamsWebhook"),
        Regex::new(r###"(?i)\b['"]?(?:okta)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?00[\w=-]{40}['"]?\b"###).expect("oktaAccessToken"),
        Regex::new(r###"\bsha256~[\w-]{43}\b"###).expect("openshiftUserToken"),
        Regex::new(r###"\bddp_[a-zA-Z0-9]{40}\b"###).expect("denoDeployToken"),
        Regex::new(r###"\bre_[a-zA-Z0-9]{30,}\b"###).expect("resendApiKey"),
        Regex::new(r###"(?i)\b['"]?(?:AZURE_OPENAI|azure_openai)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32}['"]?\b"###).expect("azureOpenaiApiKey"),
        Regex::new(r###"(?i)\b['"]?(?:RAILWAY|railway)_?(?:API|api)?_?(?:TOKEN|token)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}['"]?\b"###).expect("railwayApiToken"),
        Regex::new(r###"\b(?:prod|dev):[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]{40,}\b"###).expect("convexDeployKey"),
        Regex::new(r###"(?i)\b['"]?(?:UPSTASH_KAFKA)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9=_-]{40,}['"]?\b"###).expect("upstashKafkaCredentials"),
        Regex::new(r###"\bcf(?:k|ut|at)_[a-zA-Z0-9]{40}[a-fA-F0-9]{8}\b"###).expect("cloudflareApiTokenPrefixed"),
        Regex::new(r###"(?i)\bjwt[_-]?secret\s*[:=]\s*['"][^'"]{16,}['"]\b"###).expect("jwtSecrets"),
        Regex::new(r###"(?i)\bkind:\s*["']?Secret["']?[\s\S]{0,2000}?\bdata:\s*[\s\S]{0,2000}?[a-zA-Z0-9_-]+:\s*[a-zA-Z0-9+/]{16,}={0,3}\b"###).expect("kubernetesSecrets"),
        Regex::new(r###"(?i)\b(?:MYSQL_ROOT_PASSWORD|POSTGRES_PASSWORD|REDIS_PASSWORD|MONGODB_PASSWORD)\s*[:=]\s*['"][^'"]{4,}['"]\b"###).expect("dockerComposeSecrets"),
        Regex::new(r###"(?i)\b(?:spring\.datasource\.password|spring\.security\.oauth2\.client\.registration\..*\.client-secret)\s*[:=]\s*['"][^'"]{4,}['"]\b"###).expect("springBootSecrets"),
        Regex::new(r###"(?i)\b(?:ConnectionStrings?|connectionString)\s*[:=]\s*['"][^'"]*(?:password|pwd)\s*=\s*[^;'"]{4,}[^'"]*['"]\b"###).expect("dotnetConnectionStrings"),
        Regex::new(r###"(?i)\b(?:secret|password|key|token)[_-]?(?:base64|encoded)?\s*[:=]\s*['"][A-Za-z0-9+/]{32,}={0,3}['"]\b"###).expect("base64EncodedSecrets"),
        Regex::new(r###"-----BEGIN\s+(?:RSA\s+)?PRIVATE\s+KEY-----[\s\S]*?-----END\s+(?:RSA\s+)?PRIVATE\s+KEY-----"###).expect("rsaPrivateKey"),
        Regex::new(r###"\b-----BEGIN (?:ENCRYPTED )?PRIVATE KEY-----\s*[\s\S]*?-----END (?:ENCRYPTED )?PRIVATE KEY-----\b"###).expect("pkcs8PrivateKey"),
        Regex::new(r###"\b-----BEGIN EC PRIVATE KEY-----\s*[\s\S]*?-----END EC PRIVATE KEY-----\b"###).expect("ecPrivateKey"),
        Regex::new(r###"\b-----BEGIN DSA PRIVATE KEY-----\s*[\s\S]*?-----END DSA PRIVATE KEY-----\b"###).expect("dsaPrivateKey"),
        Regex::new(r###"-----BEGIN\s+OPENSSH\s+PRIVATE\s+KEY-----[\s\S]*?-----END\s+OPENSSH\s+PRIVATE\s+KEY-----"###).expect("opensshPrivateKey"),
        Regex::new(r###"\b-----BEGIN SSH2 ENCRYPTED PRIVATE KEY-----\s*[\s\S]*?-----END SSH2 ENCRYPTED PRIVATE KEY-----\b"###).expect("sshPrivateKeyEncrypted"),
        Regex::new(r###"\bPuTTY-User-Key-File-[23]:\s*[\s\S]*?Private-MAC:\b"###).expect("puttyPrivateKey"),
        Regex::new(r###"\b-----BEGIN PGP PRIVATE KEY BLOCK-----\s*[\s\S]*?-----END PGP PRIVATE KEY BLOCK-----\b"###).expect("pgpPrivateKey"),
        Regex::new(r###"\b"private_key":\s*"-----BEGIN PRIVATE KEY-----\\n[a-zA-Z0-9+/=\\n]+\\n-----END PRIVATE KEY-----"\b"###).expect("firebaseServiceAccountPrivateKey"),
        Regex::new(r###"\b<key>\s*-----BEGIN[^<]*-----END[^<]*<\/key>\b"###).expect("openvpnClientPrivateKey"),
        Regex::new(r###"\b-----BEGIN DH PARAMETERS-----\s*[\s\S]*?-----END DH PARAMETERS-----\b"###).expect("dhParameters"),
        Regex::new(r###"\bAGE-SECRET-KEY-1[QPZRY9X8GF2TVDW0S3JN54KHCE6MUA7L]{58}\b"###).expect("ageSecretKey"),
        Regex::new(r###"\bhvb\.[a-zA-Z0-9_-]{20,}\b"###).expect("vaultBatchToken"),
        Regex::new(r###"\bhvs\.[a-zA-Z0-9_-]{20,}\b"###).expect("vaultServiceToken"),
        Regex::new(r###"\bhvp\.[a-zA-Z0-9_-]{20,}\b"###).expect("vaultPeriodicToken"),
        Regex::new(r###"(?i)\b(?:private[_-]?key|secret[_-]?key)\s*[:=]\s*["'][A-Za-z0-9+/]{64,}={0,2}["']\b"###).expect("base64PrivateKeyContent"),
        Regex::new(r###"(?i)\b(?:key|secret)\s*[:=]\s*["'][a-fA-F0-9]{32,}["']\b"###).expect("hexEncodedKey"),
        Regex::new(r###"(?i)\bpostgresql:\/\/[^:]+:[^@]+@[^/\s]+\/[^?\s]+\b"###).expect("postgresqlConnectionString"),
        Regex::new(r###"(?i)\bmysql:\/\/[^:]+:[^@]+@[^/\s]+\/[^?\s]+\b"###).expect("mysqlConnectionString"),
        Regex::new(r###"(?i)\bjdbc:(?:postgresql|mysql):\/\/[^:]+:[^@]+@[^/\s]+\b"###).expect("jdbcConnectionStringWithCredentials"),
        Regex::new(r###"\bmongodb(?:\+srv)?:\/\/[a-zA-Z0-9._%-]+:[a-zA-Z0-9._%-]+@[a-zA-Z0-9._-]+(?::[0-9]+)?(?:\/[a-zA-Z0-9._-]*)?\b"###).expect("mongodbConnectionString"),
        Regex::new(r###"\brediss?:\/\/[a-zA-Z0-9._%-]+:[a-zA-Z0-9._%-]+@[a-zA-Z0-9._-]+:[0-9]+\b"###).expect("redisConnectionString"),
        Regex::new(r###"(?m)^[ \t]*(?:(?:redis-cli(?:[ \t]+|>)|[a-zA-Z0-9_.-]+:\d+>[ \t]*))?AUTH[ \t]+(?:[a-zA-Z0-9_.@-]+[ \t]+)?[a-zA-Z0-9_-]{8,}\b"###).expect("redisAuthPassword"),
        Regex::new(r###"(?i)\bhttps?:\/\/[^:]+:[^@]+@[^/\s]+:9200\b"###).expect("elasticsearchCredentials"),
        Regex::new(r###"(?i)\bhttp[s]?:\/\/[^:]+:[^@]+@[^/\s]+:5984\b"###).expect("couchdbCredentials"),
        Regex::new(r###"(?i)\bbolt[s]?:\/\/[^:]+:[^@]+@[^/\s]+:7687\b"###).expect("neo4jCredentials"),
        Regex::new(r###"(?i)\btimescaledb:\/\/[^:]+:[^@]+@[^/\s]+\/[^?\s]+\b"###).expect("timescaledbConnectionString"),
        Regex::new(r###"(?i)\bclickhouse:\/\/[^:]+:[^@]+@[^/\s]+:8123\b"###).expect("clickhouseCredentials"),
        Regex::new(r###"(?i)\bcassandra:\/\/[^:]+:[^@]+@[^/\s]+:9042\b"###).expect("cassandraConnectionString"),
        Regex::new(r###"\bfn[a-zA-Z0-9]{40}\b"###).expect("faunadbKey"),
        Regex::new(r###"\bdapi[a-f0-9]{32}(?:-\d)?\b"###).expect("databricksApiToken"),
        Regex::new(r###"(?i)\bpinecone[\s\w]*(?:api|key|env)[\s:=]*["']?[a-zA-Z0-9_-]{32}["']?\b"###).expect("pineconeApiKey"),
        Regex::new(r###"(?i)\b(?:postgres|mysql|mongodb|redis):\/\/[^:]+:[^@]+@[^/\s]+\b"###).expect("databaseUrlWithCredentials"),
        Regex::new(r###"\b4b1d[A-Za-z0-9]{38}\b"###).expect("clickhouseCloudApiKey"),
        Regex::new(r###"(?i)\bpostgres:\/\/[^:]+:[^@]+@[^/\s]*neon\.tech[^?\s]*\b"###).expect("neonDatabaseConnectionString"),
        Regex::new(r###"(?i)\b['"]?(?:turso|libsql)(?:[\s\w.-]{0,20})(?:token|auth)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9._-]{50,}['"]?\b"###).expect("tursoDatabaseToken"),
        Regex::new(r###"(?i)\b['"]?(?:upstash)(?:[\s\w.-]{0,20})(?:token|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9=]{40,}['"]?\b"###).expect("upstashRedisToken"),
        Regex::new(r###"\b['"]?(?:SUPABASE|supabase)_?(?:ANON|SERVICE_ROLE|anon|service_role)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?(eyJ[a-zA-Z0-9_-]{100,})['"]?\b"###).expect("supabaseJwtKey"),
        Regex::new(r###"(?i)\bpostgresql:\/\/[^:]+:[^@]+@[^/\s]*cockroachlabs\.cloud[^?\s]*\b"###).expect("cockroachdbConnectionString"),
        Regex::new(r###"\bnpm_[a-zA-Z0-9]{36}\b"###).expect("npmAccessToken"),
        Regex::new(r###"\boy2[a-z0-9]{43}\b"###).expect("nugetApiKey"),
        Regex::new(r###"\bAKCp[A-Za-z0-9]{69}\b"###).expect("artifactoryApiKey"),
        Regex::new(r###"(?i)\bheroku.*[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\b"###).expect("herokuApiKey"),
        Regex::new(r###"\b[a-zA-Z0-9]{14}\.[a-zA-Z0-9]{6}\.[a-zA-Z0-9]{16}\b"###).expect("terraformCloudToken"),
        Regex::new(r###"\bpul-[a-f0-9]{40}\b"###).expect("pulumiAccessToken"),
        Regex::new(r###"\bATATT3[A-Za-z0-9_\-=]{186}\b"###).expect("atlassianApiToken"),
        Regex::new(r###"\bsgp_[a-zA-Z0-9]{32}\b"###).expect("sourcegraphApiKey"),
        Regex::new(r###"\blin_api_[0-9A-Za-z]{40}\b"###).expect("linearApiKey"),
        Regex::new(r###"\bntn_[a-zA-Z0-9_-]{43}\b"###).expect("notionIntegrationToken"),
        Regex::new(r###"\bsecret_[a-zA-Z0-9]{43}\b"###).expect("notionIntegrationTokenLegacy"),
        Regex::new(r###"\bhawk\.[0-9A-Za-z\-_]{20}\.[0-9A-Za-z\-_]{20}\b"###).expect("stackhawkApiKey"),
        Regex::new(r###"(?i)\bsentry[\s\w]*(?:auth|token)[\s:=]*["']?[a-f0-9]{64}["']?\b"###).expect("sentryAuthToken"),
        Regex::new(r###"(?i)\bbugsnag[\s\w]*(?:api|key)[\s:=]*["']?[a-f0-9]{32}["']?\b"###).expect("bugsnagApiKey"),
        Regex::new(r###"(?i)\brollbar[\s\w]*(?:access|token)[\s:=]*["']?[a-f0-9]{32}["']?\b"###).expect("rollbarAccessToken"),
        Regex::new(r###"(?i)\bPMAK-[a-f0-9]{24}-[a-f0-9]{34}\b"###).expect("postmanApiToken"),
        Regex::new(r###"\bpnu_[a-zA-Z0-9]{36}\b"###).expect("prefectApiToken"),
        Regex::new(r###"\brdme_[a-z0-9]{70}\b"###).expect("readmeApiToken"),
        Regex::new(r###"\brubygems_[a-f0-9]{48}\b"###).expect("rubygemsApiToken"),
        Regex::new(r###"(?i)\bCLOJARS_[a-z0-9]{60}\b"###).expect("clojarsApiToken"),
        Regex::new(r###"(?i)\b['"]?(?:snyk[_.-]?(?:(?:api|oauth)[_.-]?)?(?:key|token))['"]?\s*(?::|=>|=)\s*['"]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}['"]?\b"###).expect("snykApiToken"),
        Regex::new(r###"(?i)\b(?:squ_|sqp_|sqa_)[a-z0-9=_-]{40}\b"###).expect("sonarqubeToken"),
        Regex::new(r###"(?i)\b['"]?(?:travis)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{22}['"]?\b"###).expect("travisciAccessToken"),
        Regex::new(r###"(?i)\b['"]?(?:codecov)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b"###).expect("codecovAccessToken"),
        Regex::new(r###"(?i)\b['"]?(?:droneci|drone)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b"###).expect("droneCiAccessToken"),
        Regex::new(r###"\bAPI-[A-Z0-9]{26}\b"###).expect("octopusDeployApiKey"),
        Regex::new(r###"(?i)\b['"]?(?:circleci|circle)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{40}['"]?\b"###).expect("circleciToken"),
        Regex::new(r###"\bbkagent_[a-f0-9]{40}\b"###).expect("buildkiteAgentToken"),
        Regex::new(r###"(?i)\b['"]?(?:launchdarkly)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9=_-]{40}['"]?\b"###).expect("launchdarklyAccessToken"),
        Regex::new(r###"(?i)\b['"]?(?:algolia)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b"###).expect("algoliaApiKey"),
        Regex::new(r###"\bsk_(?:live|test)_[a-zA-Z0-9]{24,}\b"###).expect("clerkSecretKey"),
        Regex::new(r###"\bpk_(?:live|test)_[a-zA-Z0-9]{24,}\b"###).expect("clerkPublishableKey"),
        Regex::new(r###"\bsdk-[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}\b"###).expect("launchdarklySdkKey"),
        Regex::new(r###"\b['"]?(?:VERCEL_OIDC_TOKEN)['"]?\s*(?::|=>|=)\s*['"]?eyJ[a-zA-Z0-9_-]{100,}['"]?\b"###).expect("vercelOidcToken"),
        Regex::new(r###"(?i)\b['"]?(?:NOVU|novu)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{32,}['"]?\b"###).expect("novuApiKey"),
        Regex::new(r###"\btr_(?:dev|prod)_[a-zA-Z0-9]{20,}\b"###).expect("triggerDevApiKey"),
        Regex::new(r###"\b['"]?(?:NX_CLOUD_ACCESS_TOKEN|nxCloudAccessToken)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{36,}['"]?\b"###).expect("nxCloudAccessToken"),
        Regex::new(r###"\bdpt_[a-zA-Z0-9]{40,}\b"###).expect("depotToken"),
        Regex::new(r###"(?i)\b['"]?(?:GRAFBASE|grafbase)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?eyJ[a-zA-Z0-9_-]{50,}['"]?\b"###).expect("grafbaseApiKey"),
        Regex::new(r###"\bshpatf_[0-9a-f]{32}\b"###).expect("shopifyStorefrontAccessToken"),
        Regex::new(r###"\bck_[a-f0-9]{40}\b"###).expect("woocommerceConsumerKey"),
        Regex::new(r###"\bcs_[a-f0-9]{40}\b"###).expect("woocommerceConsumerSecret"),
        Regex::new(r###"\bCFPAT-[0-9a-zA-Z]{20}\b"###).expect("contentfulAccessToken"),
        Regex::new(r###"\b[0-9a-f]{32}-[a-z]{2,3}[0-9]{1,2}\b"###).expect("mailchimpEcommerceApiKey"),
        Regex::new(r###"\b[a-zA-Z]{3,10}:\/\/[^\\/\s:@]{3,20}:[^\\/\s:@]{3,20}@[^\s'"]+\b"###).expect("credentialsInUrl"),
        Regex::new(r###"(?i)\b(?:\w+_)?(?:SECRET|secret|password|key|token|jwt_secret)(?:_\w+)?\s*=\s*["'][^"']{16,}["']"###).expect("envVarSecrets"),
        Regex::new(r###"\bsk\.eyJ[a-zA-Z0-9._-]{87}\b"###).expect("mapboxSecretToken"),
        Regex::new(r###"\bpk\.eyJ[a-zA-Z0-9._-]{80,}\b"###).expect("mapboxPublicToken"),
        Regex::new(r###"\bglc_[a-zA-Z0-9]{32}\b"###).expect("grafanaCloudApiKey"),
        Regex::new(r###"\bNRAK-[A-Z0-9]{27}\b"###).expect("newRelicApiKey"),
        Regex::new(r###"\bNRIK-[A-Z0-9]{32}\b"###).expect("newRelicInsightKey"),
        Regex::new(r###"\bNRJS-[a-f0-9]{19}\b"###).expect("newRelicBrowserApiToken"),
        Regex::new(r###"(?i)\bNRII-[a-z0-9-]{32}\b"###).expect("newRelicInsertKey"),
        Regex::new(r###"(?i)\beyJrIjoi[A-Za-z0-9]{70,400}={0,3}\b"###).expect("grafanaApiKey"),
        Regex::new(r###"\bglsa_[A-Za-z0-9]{32}_[A-Fa-f0-9]{8}\b"###).expect("grafanaServiceAccountToken"),
        Regex::new(r###"\bsntrys_eyJpYXQiO[a-zA-Z0-9+/]{10,200}(?:LCJyZWdpb25fdXJs|InJlZ2lvbl91cmwi|cmVnaW9uX3VybCI6)[a-zA-Z0-9+/]{10,200}={0,2}_[a-zA-Z0-9+/]{43}\b"###).expect("sentryOrgToken"),
        Regex::new(r###"\bsntryu_[a-f0-9]{64}\b"###).expect("sentryUserToken"),
        Regex::new(r###"(?i)\b['"]?(?:sumo)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?su[a-zA-Z0-9]{12}['"]?\b"###).expect("sumoLogicAccessId"),
        Regex::new(r###"(?i)\b['"]?(?:splunk)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}['"]?\b"###).expect("splunkApiToken"),
        Regex::new(r###"(?i)\b['"]?(?:logdna|mezmo)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32}['"]?\b"###).expect("logdnaApiKey"),
        Regex::new(r###"(?i)\b['"]?(?:loggly)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}['"]?\b"###).expect("logglyToken"),
        Regex::new(r###"\b[rs]k_(?:live|test)_[a-zA-Z0-9]{20,247}\b"###).expect("stripeSecretKey"),
        Regex::new(r###"\bwhsec_[a-zA-Z0-9]{32,}\b"###).expect("stripeWebhookSecret"),
        Regex::new(r###"\bpk_(?:live|test)_[a-zA-Z0-9]{20,247}\b"###).expect("stripePublishableKey"),
        Regex::new(r###"\bA21AA[a-zA-Z0-9_-]{50,}\b"###).expect("paypalAccessToken"),
        Regex::new(r###"\baccess_token\$(?:production|sandbox)\$[0-9a-z]{16}\$[0-9a-f]{32}\b"###).expect("paypalBraintreeAccessToken"),
        Regex::new(r###"\b(?:EAAAE[A-Za-z0-9_-]{94,}|sq0[a-z]?atp-[0-9A-Za-z\-_]{22,26})\b"###).expect("squareAccessToken"),
        Regex::new(r###"\bsq0csp-[0-9A-Za-z\-_]{43}\b"###).expect("squareOauthSecret"),
        Regex::new(r###"\bsq0ids-[a-zA-Z0-9_-]{43}\b"###).expect("squareApplicationId"),
        Regex::new(r###"\bshppa_[a-fA-F0-9]{32}\b"###).expect("shopifyPrivateAppPassword"),
        Regex::new(r###"\bshpat_[a-fA-F0-9]{32}\b"###).expect("shopifyAccessToken"),
        Regex::new(r###"\bshpwh_[a-fA-F0-9]{32}\b"###).expect("shopifyWebhookToken"),
        Regex::new(r###"\bAQE[a-zA-Z0-9]{70,}\b"###).expect("adyenApiKey"),
        Regex::new(r###"\brzp_(?:test|live)_[a-zA-Z0-9]{14}\b"###).expect("razorpayApiKey"),
        Regex::new(r###"\bFLW(?:PUBK|SECK)_(?:TEST|LIVE)-[a-h0-9]{32}-X\b"###).expect("flutterwaveKeys"),
        Regex::new(r###"(?i)\b['"]?(?:coinbase)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9_-]{64}['"]?\b"###).expect("coinbaseAccessToken"),
        Regex::new(r###"(?i)\b['"]?(?:kraken)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9/=_+-]{80,90}['"]?\b"###).expect("krakenAccessToken"),
        Regex::new(r###"(?i)\b['"]?(?:kucoin)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{24}['"]?\b"###).expect("kucoinAccessToken"),
        Regex::new(r###"(?i)\b['"]?(?:kucoin)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}['"]?\b"###).expect("kucoinSecretKey"),
        Regex::new(r###"(?i)\b['"]?(?:bittrex)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{32}['"]?\b"###).expect("bittrexAccessKey"),
        Regex::new(r###"(?i)\b['"]?(?:binance)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9]{64}['"]?\b"###).expect("binanceApiKey"),
        Regex::new(r###"(?i)\b['"]?(?:bybit)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[A-Za-z0-9]{18,24}['"]?\b"###).expect("bybitApiKey"),
        Regex::new(r###"(?i)\blive_[a-z0-9\-_=]{40}\b"###).expect("gocardlessApiToken"),
        Regex::new(r###"\baccess-(?:sandbox|development|production)-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b"###).expect("plaidApiToken"),
        Regex::new(r###"(?i)\b['"]?(?:PLAID|plaid)_?(?:CLIENT|client)_?(?:ID|id)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{24}['"]?\b"###).expect("plaidClientId"),
        Regex::new(r###"(?i)\b['"]?(?:LEMONSQUEEZY|LEMON_SQUEEZY|lemonsqueezy)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?eyJ[a-zA-Z0-9_-]{100,}['"]?\b"###).expect("lemonSqueezyApiKey"),
        Regex::new(r###"(?i)\b['"]?(?:PADDLE|paddle)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?pdl_(?:live|sdbx)_[a-zA-Z0-9]{40,}['"]?\b"###).expect("paddleApiKey"),
        Regex::new(r###"\b(?:live|test)_[a-zA-Z0-9]{30,}\b"###).expect("mollieApiKey"),
        Regex::new(r###"-----BEGIN\s+(?:(?:RSA|DSA|EC|OPENSSH|ENCRYPTED)\s+)?PRIVATE\s+KEY(?:\s+BLOCK)?-----[\s\S]*?-----END\s+(?:(?:RSA|DSA|EC|OPENSSH|ENCRYPTED)\s+)?PRIVATE\s+KEY(?:\s+BLOCK)?-----"###).expect("privateKeyPem"),
        Regex::new(r###"-----BEGIN\s+PGP\s+PRIVATE\s+KEY\s+BLOCK-----[\s\S]*?-----END\s+PGP\s+PRIVATE\s+KEY\s+BLOCK-----"###).expect("pgpPrivateKeyBlock"),
        Regex::new(r###"\bshippo_(?:live|test)_[a-fA-F0-9]{40}\b"###).expect("shippoApiToken"),
        Regex::new(r###"(?i)\bEZAK[a-z0-9]{54}\b"###).expect("easypostApiToken"),
        Regex::new(r###"(?i)\bEZTK[a-z0-9]{54}\b"###).expect("easypostTestApiToken"),
        Regex::new(r###"(?i)\bduffel_(?:test|live)_[a-z0-9_\-=]{43}\b"###).expect("duffelApiToken"),
        Regex::new(r###"(?i)\bfio-u-[a-z0-9\-_=]{64}\b"###).expect("frameioApiToken"),
        Regex::new(r###"\b[A-Za-z0-9]{6}_[A-Za-z0-9]{29}_mmk\b"###).expect("maxmindLicenseKey"),
        Regex::new(r###"(?i)\b['"]?(?:asana)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[0-9]{16}['"]?\b"###).expect("asanaPersonalAccessToken"),
        Regex::new(r###"(?i)\b['"]?(?:monday)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?eyJ[a-zA-Z0-9_-]{100,}['"]?\b"###).expect("mondayApiToken"),
        Regex::new(r###"(?i)\b['"]?(?:trello)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32}['"]?\b"###).expect("trelloApiKey"),
        Regex::new(r###"(?i)\b['"]?(?:jira)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{24}['"]?\b"###).expect("jiraApiToken"),
        Regex::new(r###"\bsm_aat_[a-zA-Z0-9]{16}\b"###).expect("settlemintApplicationAccessToken"),
        Regex::new(r###"\bsm_pat_[a-zA-Z0-9]{16}\b"###).expect("settlemintPersonalAccessToken"),
        Regex::new(r###"\bsm_sat_[a-zA-Z0-9]{16}\b"###).expect("settlemintServiceAccessToken"),
        Regex::new(r###"\bxoxb-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b"###).expect("slackBotToken"),
        Regex::new(r###"\bxoxp-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b"###).expect("slackUserToken"),
        Regex::new(r###"\bxoxa-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b"###).expect("slackWorkspaceToken"),
        Regex::new(r###"\bxoxr-[0-9]{10,13}-[0-9]{10,13}[a-zA-Z0-9-]*\b"###).expect("slackRefreshToken"),
        Regex::new(r###"(?i)(?:https?:\/\/)?hooks\.slack\.com\/(?:services|workflows|triggers)\/[A-Za-z0-9+/]{43,56}"###).expect("slackWebhookUrl"),
        Regex::new(r###"\bhttps:\/\/hooks\.slack\.com\/services\/[A-Z0-9]{8,12}\/[A-Z0-9]{8,12}\/[A-Za-z0-9]{20,32}\b"###).expect("slackWebhookUrlClassic"),
        Regex::new(r###"(?i)\bxapp-\d-[A-Z0-9]+-\d+-[a-z0-9]+\b"###).expect("slackAppToken"),
        Regex::new(r###"(?i)\bxoxe\.xox[bp]-\d-[A-Z0-9]{163,166}\b"###).expect("slackConfigAccessToken"),
        Regex::new(r###"(?i)\b['"]?(?:sendbird)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{40}['"]?\b"###).expect("sendbirdAccessToken"),
        Regex::new(r###"(?i)\b['"]?(?:messagebird|message_bird|message-bird)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{25}['"]?\b"###).expect("messagebirdApiToken"),
        Regex::new(r###"(?i)\b['"]?(?:mattermost)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{26}['"]?\b"###).expect("mattermostAccessToken"),
        Regex::new(r###"(?i)\b['"]?(?:zendesk)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{40}['"]?\b"###).expect("zendeskSecretKey"),
        Regex::new(r###"(?i)\b['"]?(?:freshdesk)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{20}['"]?\b"###).expect("freshdeskApiKey"),
        Regex::new(r###"\bxkeysib-[a-f0-9]{64}-[a-z0-9]{16}\b"###).expect("sendinblueApiToken"),
        Regex::new(r###"(?i)\b['"]?(?:PUSHER|pusher)_?(?:APP|app)?_?(?:SECRET|secret)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{20}['"]?\b"###).expect("pusherAppSecret"),
        Regex::new(r###"(?i)\b['"]?(?:STREAM|stream|GETSTREAM)_?(?:API|api)?_?(?:SECRET|secret|KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{40,}['"]?\b"###).expect("streamApiSecret"),
        Regex::new(r###"\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b"###).expect("postmarkServerToken"),
        Regex::new(r###"(?i)\b['"]?(?:VONAGE|NEXMO|vonage|nexmo)_?(?:API|api)?_?(?:SECRET|secret)['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9]{16}['"]?\b"###).expect("vonageApiSecret"),
        Regex::new(r###"(?i)\b['"]?(?:CUSTOMERIO|customer_io|CUSTOMER_IO)_?(?:API|api)?_?(?:KEY|key)['"]?\s*(?::|=>|=)\s*['"]?[a-f0-9]{32,}['"]?\b"###).expect("customerIoApiKey"),
        Regex::new(r###"\bAAAAAAAAAAAAAAAAAAAAA[a-zA-Z0-9%]{50,}\b"###).expect("twitterBearerToken"),
        Regex::new(r###"\bEAA[a-zA-Z0-9]{80,120}\b"###).expect("facebookAccessToken"),
        Regex::new(r###"\bEAAB[a-zA-Z0-9+/]{100,}\b"###).expect("facebookPageAccessToken"),
        Regex::new(r###"\bIGQV[a-zA-Z0-9_-]{100,}\b"###).expect("instagramAccessToken"),
        Regex::new(r###"\b[MN][A-Za-z\d]{23}\.[A-Za-z\d\-_]{6}\.[A-Za-z\d\-_]{27}\b"###).expect("discordSocialBotToken"),
        Regex::new(r###"\bhttps:\/\/discord(?:app)?\.com\/api\/webhooks\/[0-9]{17,19}\/[A-Za-z0-9_-]{68}\b"###).expect("discordSocialWebhookUrl"),
        Regex::new(r###"\bpina_[a-zA-Z0-9]{32}\b"###).expect("pinterestAccessToken"),
        Regex::new(r###"(?i)\b['"]?(?:linkedin|linked_in|linked-in)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-z0-9]{14,16}['"]?\b"###).expect("linkedinApiToken"),
        Regex::new(r###"(?i)\b['"]?(?:youtube)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?AIza[a-zA-Z0-9_-]{35}['"]?\b"###).expect("youtubeApiKey"),
        Regex::new(r###"(?i)\b['"]?(?:tiktok)(?:[\s\w.-]{0,20})['"]?\s*(?::|=>|=)\s*['"]?[a-zA-Z0-9_-]{40,}['"]?\b"###).expect("tiktokApiToken"),
        Regex::new(r###"\bglpat-[A-Za-z0-9_-]{20,}\b"###).expect("gitlabPersonalAccessToken"),
        Regex::new(r###"\bgldt-[A-Za-z0-9_-]{20}\b"###).expect("gitlabDeployToken"),
        Regex::new(r###"\bglrt-[A-Za-z0-9_-]{20}\b"###).expect("gitlabRunnerToken"),
        Regex::new(r###"\bglcbt-[0-9a-zA-Z]{1,5}_[0-9a-zA-Z_-]{20}\b"###).expect("gitlabCiJobToken"),
        Regex::new(r###"\bglptt-[0-9a-f]{40}\b"###).expect("gitlabPipelineTriggerToken"),
        Regex::new(r###"\bATBB[a-zA-Z0-9]{24}\b"###).expect("bitbucketAppPassword"),
        Regex::new(r###"\b((?:ghp|gho|ghu|ghs|ghr|github_pat)_[a-zA-Z0-9_]{36,255})\b"###).expect("githubTokens"),
        Regex::new(r###"\bgithub_pat_[A-Za-z0-9_]{82}\b"###).expect("githubFineGrainedToken"),
        Regex::new(r###"\bghs_[0-9a-zA-Z]{37}\b"###).expect("githubAppInstallationToken"),
        Regex::new(r###"\bglsoat-[0-9a-zA-Z_-]{20}\b"###).expect("gitlabScimToken"),
        Regex::new(r###"\bglffct-[0-9a-zA-Z_-]{20}\b"###).expect("gitlabFeatureFlagToken"),
        Regex::new(r###"\bglft-[0-9a-zA-Z_-]{20}\b"###).expect("gitlabFeedToken"),
        Regex::new(r###"\bglimt-[0-9a-zA-Z_-]{25}\b"###).expect("gitlabIncomingMailToken"),
        Regex::new(r###"\bglagent-[0-9a-zA-Z_-]{50}\b"###).expect("gitlabK8sAgentToken"),
        Regex::new(r###"\bgloas-[0-9a-zA-Z_-]{64}\b"###).expect("gitlabOAuthAppSecret"),
        Regex::new(r###"_gitlab_session=[0-9a-z]{32}"###).expect("gitlabSessionCookie"),
        Regex::new(r###"\bATCTT3[a-zA-Z0-9]{24}\b"###).expect("bitbucketRepoToken"),
    ]
});
