Build, test, and debug regular expressions
This regex matches AWS Cognito User Pool endpoint URLs, specifically for the cognito-idp service. It captures the AWS region (e.g., us-east-1) and the user pool ID (e.g., us-east-1_abcd12345) from the path. This pattern is useful for extracting, validating, or scanning for Cognito User Pool references in logs, configurations, or security assessments. Note that despite the title, this targets the user pool (identity) endpoint, not the identity pool service.