How do I update the ESP32 core used in PlatformIO?

I am currently building an ESP32 application and came across a bug. I have posted links below of my problem and suggested answer.
My problem is to do with Async Wifi Scan as mentioned here. ESP32 async scan networks returning fail even though successful scan. How do I detect a real fail - Stack Overflow

What I would like to know is… how do I find out what version of the ESP32 core is installed and if it is not the version with the fix I need, how do I update PlatformIO so that it uses ESP32 version 3.0.0 (or above).