Even though you did answer to Konrad here, I just resetted my BIOS setup to default values and now the touchscreen works.
For anyone reading this later, my troubleshooting steps were:
- Install the BETA Bios (3.20) by following the instructions in Framework Laptop 13 Ryzen 7040 BIOS 3.20 Release BETA
- Reset BIOS by going into the BIOS setup utility () and pressing F9, then F10 there.
- I recommend making photographs from your current BIOS setup values to set them again after the reset and try whether the touchscreen still works!