I got the error message "The JWK Set did not contain any usable keys" after installing the latest version of pyjwt[crypto] (v2.6.0) .
When I rolled back to pyjwt=2.3, and install the cryptography package separately (v38) this sample project works again.
I haven't narrowed down which version of pyjwt or cryptography actually caused the problem.