Efficiently Excluding Multiple “attachments” Folders in Obsidian Publish

I appreciate the functionality of the Hide Folders plugin in Obsidian, as it effectively hides all “attachments” folders throughout my project. However, I’m seeking a method to exclude these “attachments” folders from being published using Obsidian Publish. Currently, Obsidian Publish requires manual exclusion of each folder, which can be time-consuming. Is there a more efficient way to exclude all “attachments” folders from publishing without specifying each one individually?

I came across a discussion on the Obsidian Forum that touches on this topic:

Publish: Permanently Exclude Folders

Any insights or suggestions would be greatly appreciated.