Moving to PF2e is the perfect excuse to move to Foundry.
Yeah. If you are already invested in DDB, no need to rebuy everything for each VTT. AFAIK, Fantasy Grounds, Roll20, and Foundry all have ways to import from DDB. But if I run 5e again, I think I would just run it in DDB using DDB Maps.