Then why do countries rely on foreign oil, gas, and coal all the time?
I don't think that all these are true.
Yes, the technology definitely exists.
But as far as I know there's no country (yet) that has existing infrastructure that merely needs some upgrades (with the effort for these upgrades being significantly smaller than the total effort that went into building the existing infrastructure or would be necessary for building completely new infrastructure) to enable storing of months worth of hydrogen.
So I wouldn't support the claim "You can store months worth of hydrogen ...".