Hi @sb1,
We don’t have a way to do this, but it is something that has been discussed in this feature request thread: Custom exclusion lists for sync (detailed blacklist/whitelist control, simple file-extension exclusion, etc.)
For now, it is possible to simulate this behavior for folders by prepending a ~ to its name, which will exclude it from sync.