How can I add the title to filenames?

I have been naming files by a unique number (datetime stamp, basically). This is great for uniqueness, but terrible for being able to browse the files (I can of course use org-roam-find-file in Emacs, but there are occasions when I’d like to browse them in the Finder or similar). The reason I didn’t add the title to the filename template was in case I later edited the #+TITLE: field, as I didn’t want the filename and title to be out of sync. But it occurred to me that there’s probably a way to update the filename when the TITLE field changes?