When the back of your tablet is facing you, there are only 2 big cables near the right speaker and top of mainboard.
The black is touchscreen (left ), and the orange ( right) is S Pen.
I don't recommend to touch these cables as I have seen many novice users break these connectors or locking clips while trying to disconnect and reconnect cable. Once broken, you have to change mainboard as these connectors are impossible to find unless from used mainboard.
Try my advice, test the functionality in testing screen to see if it passes or fails.
Remember this phrase: " If it ain't broke, don't fix it "
As long as the touchscreen is working fine, nothing you can fix this area of the back button.
Touchscreen cable is easier to insert than S Pen cable. Even doing many times, I have a hard time to connect the S pen cable fully seated in its connector. Don't touch the S Pen as your problem has nothing to do with it.
Today, I see a similar problem like yours but both buttons are not working with touch.
They're working fine with S Pen, since I see the problem myself, I can verify it's actually the problem of touchscreen on these buttons. Since SPen has different circuit, they work fine with the pen. This is a Tab A with SPen, different model but the same problem of buttons on touchscreen.