How to exclude hidden files in File Crawling?

Hello,

want to crawl a SMB share. How to exclude hidden files starting with a dot?

Already tried to exclude with:

^\..+

But it doesnt work…

It may be .*/\.[^/]+

Sy, I applied the filter, but it doesnt work.

All hidden files and folders like for example: .git .config .metadata are still crawled…

If it does not work, I think the regex is not proper.