You can backup and restore with Neobackup which can be found in F-Droid. In my case it works for all apps except Signal which has its own backup routine. You can then pull all data from /sdcard with “adb pull /sdcard” to computer. Then do “adb push . /sdcard” to the new phone, point Neobackup to your data folder and restore everything you need. I usually only restore user apps with data, you could easily bork your installation otherwise.
I can confirm. Have been using this with swipe library for a while now and it made me finally ditch gboard 👍