Bear import, organise into folders by tags

So I’ve imported all my Bear notes into Obsidian and they’re all nicely organised by tags. What I’d like to do now is organise them into a folder hierarchy that would mirror the tag structure. I’ve looked for plugins to do this but without much luck. At a pinch I could do it by hand selecting nested tags in the tag sidebar but I find I can only select one note at a. time in the search bar and anyway, I can’t drag the results into a folder.

Any thoughts?