Apple Notes does not support exporting into necessary formats, but we have a simple workaround. This works on Mac.
1. Export all your notes from Apple Notes in Markdown format using this free
2. Import all markdown files into Spaces
. You can also import whole folders as tags.
On iOS, go to Settings > Import || On MacOS, go to File > Import