Oh, sorry for the bug!
I'm on a Mac as well (macOS 15 Beta) with Joplin Server on my LAN,
but could not figure out how to reproduce the multiple folders bug in the normal and dev mode.
Could you provide more details?