Thanks for the help! I completely forgot you could use older versions of TF2!
In fact I found out that it is simpler than I thought, since TF2 has a beta version called "pre_smissmass_2022_demos", which was literally made for this very purpose...
So for anyone else wondering about this issue, just select the above mentioned beta version of TF2 and you're good to record older demo's.