Checking web3 version metamask is using

https://ethereum.stackexchange.com/questions/144959/checking-web3-version-metamask-is-using

I have installed metamask. When I open any page in the browser, go into the console and type web3 I can see that the object is present:

> web3
Proxy { <target>: {…}, <handler>: {…} }

How do I check the version of web3 injected into the page? The command web3.version fails.