As far as I know, version 20.1 is the last version that supports Berkeley DB, allowing the addition of legacy uncompressed addresses to the wallet...
I'm not sure what database it used, but I can tell you I've used Bitcoin Core v26.1.0 with uncompressed legacy addresses. You can just try it: backup your wallet again (to preserve your latest labels), and upgrade.