Is there a way to run rclone dedupe and treat all subfolders of the targeted location as being in the same folder?

No it is not possible at the moment.

Here you are some workaround: