Please make sure the rules you add aren’t too broad, as they can impact the performance of Bitbucket.
Security for Bitbucket allows for creation of custom scanning rules using regular expressions. The rules can only be created, enabled or disabled by Bitbucket Administrators or anyone that's been granted explicit access.
To create a rule, go to Administration → Security for Bitbucket Server → Security Validation Rules → Custom Rules. Alternatively, you may reach the configuration by clicking the gear icon on the Security Scan Report: