This is something that nextcloud does really well. There are lots of sync tools on the level of syncthing, but my experience with nextcloud is a polished experience truly competitve with Dropbox on the complicated stuff like conflict handling, private/restricted shares, etc.