/usr/lib/libreoffice/share/ is in libreoffice-script-provider-bsh 1:5.2.7-1+deb9u5.
This file is owned by root:root, with mode 0o755.
..
/usr/lib/libreoffice/share/Scripts/
/usr/lib/libreoffice/share/Scripts/beanshell/
/usr/lib/libreoffice/share/Scripts/beanshell/Capitalise/
/usr/lib/libreoffice/share/Scripts/beanshell/Capitalise/capitalise.bsh
/usr/lib/libreoffice/share/Scripts/beanshell/Capitalise/parcel-descriptor.xml
/usr/lib/libreoffice/share/Scripts/beanshell/HelloWorld/
/usr/lib/libreoffice/share/Scripts/beanshell/HelloWorld/helloworld.bsh
/usr/lib/libreoffice/share/Scripts/beanshell/HelloWorld/parcel-descriptor.xml
/usr/lib/libreoffice/share/Scripts/beanshell/Highlight/
/usr/lib/libreoffice/share/Scripts/beanshell/Highlight/ButtonPressHandler.bsh
/usr/lib/libreoffice/share/Scripts/beanshell/Highlight/ShowDialog.bsh
/usr/lib/libreoffice/share/Scripts/beanshell/Highlight/highlighter.bsh
/usr/lib/libreoffice/share/Scripts/beanshell/Highlight/parcel-descriptor.xml
/usr/lib/libreoffice/share/Scripts/beanshell/MemoryUsage/
/usr/lib/libreoffice/share/Scripts/beanshell/MemoryUsage/memusage.bsh
/usr/lib/libreoffice/share/Scripts/beanshell/MemoryUsage/parcel-descriptor.xml
/usr/lib/libreoffice/share/Scripts/beanshell/WordCount/
/usr/lib/libreoffice/share/Scripts/beanshell/WordCount/parcel-descriptor.xml
/usr/lib/libreoffice/share/Scripts/beanshell/WordCount/wordcount.bsh