Aye, OP, check if you can find Goodlock on the Galaxy Store. Go into the “Life up” section on the Goodlock app and download Registrar. It should allow you to set either the back double /triple tap and/or a press and hold of the side button to take a screenshot, as shown here.
I initially held on to the headphone jack but nowadays I’ve completely stopped caring. My Galaxy Buds 2 Pros are pretty dang good even by audiophile standards and the convenience of TWS is quite nice. For my wired IEMs the 9$ Apple dongle works just fine with my Galaxy S24+. Nowadays some IEMS also have USB-C version and I suspect that this trend will continue. Like it or not that jack will eventually become a thing of the past on the vast majority of consumer electronics, not just on phones.