How to add hidden files and folders as an exception?

Hi!
I’m trying to add /usr/local/share folder as an exception for a file system shield.
Even though I have “show hidden files” option enabled on my mac, Avast is still not showing hidden files (such as /usr/…)