Not only am I having this exact problem, but Samsung even sent me a NEW pen to try, and it also isn't detected. I'm not sure how this can even be an issue for a tablet produced in 2020.
I've discovered going into Safe Mode actually allows me to use the Pen again. Which is crazy considering I just factory wiped so there shouldn't be any apps active to impede it. Will get back if I discover the source.