Hello , Welcome to MS Q&A
Yes, Terraforms Azure WAF module supports the use of regular expressions (regex) in custom rules. This capability allows for more advanced matching conditions when creating custom rules for the Web Application Firewall.
For more detailed information, you can refer to the following resources:https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/web_application_firewall_policy
Image
Please let us know if any further questions
Kindly accept answer if it helps
Thanks
Deepanshu