I started writing a modern pywallet replacement that may work:
https://github.com/achow101/wallet-manipulator. You should be able to install it with
pip install . and then the
wallet-manipulator should be available. You can then export your private keys with
wallet-manipulator <path to file> export privkeys
You can use an additional
--importable option after
export to get json formatted output that can be dropped directly into a Bitcoin Core
importdescriptors command.
However, since you said that these files are recovered rather than the original files, this may not get all of your private keys nor will it necessarily be able to even read the files. It uses my own implementation of a BDB file parser and it generally requires that the file is properly formatted. In possible corruption scenarios, it may not behave as expected.