I just reinstalled windows in a new SSD and forgot to export in some way the settings for my logitech devices.
The old SSD is still around but it’s cumbersome to run windows from there just to copy the settings, so I mounted with and adapter and to read the settings files.

The LGHUB storage is an sqlite DB located in C:\Users\<user>\AppData\Local\LGHUB\settings.db
And you can just query select * from data which contains the settings as a json.

It’d be better to send it to a file sqlite3 settings.db 'select file from data' > data.json (mine was 7.5MB of data)