@KasTasMykolas And after a phone call, now it's fixed. 🤦
There must be some sort of ridiculous sticky state that's set and cleared for background operation of the proximity sensor screen blanking, rather than evaluating whether to do it based on the currently focused foreground activity.