I’ve used
adb shell pm list packages
to get a list of installed packages and https://github.com/mvdan/fdroidcl to install the ones available of fdroid.
That said, look into Obtanium, too.

For bonus points, you can use fdroidcl to reinstall your fdroid apps from a list when you reset your phone!
it’s mostly fixed now, after convincing fxtec to send me a new USB board, but in the time it took to do that, I’ve moved on to a flippy razr phone. for now, single handed use beats having the keyboard for me