Possible regex
resource (.+)_lock 'Microsoft\.Authorization\/locks@2020-05-01' = if \(!empty\(lock\)\) \{
name: '\$\{(.+)\.name\}-\$\{lock\}-lock'
properties: \{
level: any\(lock\)
notes: lock == 'CanNotDelete' \? 'Cannot delete resource or child resources\.' : 'Cannot modify the resource or child resources\.'
\}
scope: (.+)
\}
Possible regex