To help with manually adding mods on a Mac, today I wrote a perl script to extract the metadata for modsettings.lsx file. It's basic, but it also requires no dependencies or compilation, so it should run on any Mac. It's also totally open so anyone can take it and do what they want with it (e.g., it would be cool if mkinfrared's tool would extract this stuff).

It's here: https://github.com/smacx250/BG3/blob/main/misc_script/getBg3PakMeta.pl

Save the file, and from the terminal make it executable: chmod +x <path to getBg3PakMeta.pl>
To run: <path to getBg3PakMeta.pl> <path to "mod.pak">

It spits out the attributes that need adding to the modsettings.lsx file.