Ransomware Exclude file type from a specific directory?

Hello. Was wondering if anyone has any good examples on how to exclude a file type from a specific directory from the ransomware protection?

Thanks!