Think of all communications and power out for 3 months. What would happen?
Precisely.
Although an extreme CME, directed at regions of the Earth with massive infrastructure... will knock out everything on the grid for far longer than 3 months. We just don't have the resources to replace entire region's worth of fallen equipment. Transformers? We'd probably get a few smaller regions up in 3 months, but it'll take far longer to manufacture the number of transformers needed to bring an entire country back up and running. Not only do you have to produce those, they have to build up the local grid to be able to do so.
It'd be a nightmare if we are caught off guard. Hopefully such an event doesn't happen until we've had a chance to thoroughly prepare.
But considering how fast the radiation from a massive CME can travel, it's hard to really say we'll ever have more than a few minutes to even prepare, because it's going to be flying through space, while not at C, at some estimates it could be half C. I've seen it argued that the energy spike would hit Earth in 18 minutes, which is just under half the time it takes light to reach Earth from the Sun.
If we have a solid early-warning system at 0.25 AU, at those estimates the CME would be detected by the satellite after about 4.5 minutes. It would then take about 6 minutes for the satellite's information to be received by NASA on Earth.
That leaves us humans with under 8 minutes to prepare.
Wow.
I hope I'm not alive for this.