Go to settings and go to advanced features. Scroll down to s pen. U sent you a screenshot. Make sure you have everything clicked like I do. Maybe this might help. It also can be that maybe you didn't have the s pen all the way in and it has to be charged. So make sure it's in. Turn off the phone entirely and then wait a minute. Start phone again and maybe too that might help it. Let me know it worked.
have you tried it in safe mode?
submit an error report via samsung members app if it doesn't work in safe mode either (members app > + button > error report) or take it to the nearest service center