https://forum.keyboardmaestro.com/t/exclude-files-folders-fr...
Also "Bailiff":
"Bailiff is a simple menubar app which lets you evict iCloud files and folders from local storage, or download them when you want. Saves your Mac’s startup disk from getting cluttered with files you don’t want or use."
https://eclecticlight.co/downloads/