It seems to do the equivalent of this on my ubuntu machine too.
Maybe it's possible to restrict its access via flatpak or Snap? I have a messenger via flatpak that can't access anything outside the home/Downloads folder, but I can't say whether that restriction applies to other apps as well.