Related feature requests (upvote by pressing the heart or adding relevant new info):
https://forum.obsidian.md/t/create-subfolders-for-attachments-based-on-custom-pattern-e-g-note-file-name/34096