You don’t note when it stopped working, but there is a bug in Dropbox in Shortcuts. Was it that it used to work in Workflow by any chance?
However, the new beta version that dropped last night for me seems to have fixed the nested folder save issue, based on a single quick test I did just now.