Welcome to the Apple Support Communities!
It appears you are trying to access macOS Recovery over the internet to restore your MacBook Pro but you are getting the -2002F error message. The network you are trying to access may be blocked if it is a public or work network. Try macOS Recovery from a different wired network to see if you are able to connect. If not, the resource below explains other options. I've highlighted some key information here for you. Click on the link for complete details.
About macOS Recovery
If you can't start up from macOS Recovery
Newer Mac computers and some older Mac computers automatically try to start up from macOS Recovery over the Internet when unable to start up from the built-in recovery system. When that happens, you see a spinning globe instead of an Apple logo during startup. To manually start up from macOS Recovery over the Internet, hold down Option-Command-R or Shift-Option-Command-R at startup.
If you still can't start up from macOS Recovery, and you have a Mac that is able to start up completely, you might be able to create an external Mac startup disk to start up from instead.
macOS Recovery over the Internet, the Reinstall macOS utility, and the Get Help Online utility all require an Internet connection. If you need to connect to a Wi-Fi network, move your pointer to the top of the screen, then choose a network from the Wi-Fi status menu .
Take care.