Why is the flow file in AppData\Roaming\SPB_Data on my Windows PC?

By default it should be set by the OS.
I think you can just delete the entry in your environment dialog, logout/login and it should be working again.

As another solution, you can explicitly pass the location of the workspace when starting Node-RED. Just pass the path with the parameter -u path/to/workspace.