Things can appear banned even when they aren't merely because there is a new technology that's better and cheaper and it's a big investment so people go with the cheaper option.
Nobody is building new coal in the US because it's so expensive, not because there's an outright ban. Now, part of the reason it's more expensive than in the past is that using once-through water for cooling raises the cost of disposing of waste heat. And now, modern and much more efficient natural gas combined cycle plant is the obvious choice because not only is the fuel cheaper per kWh, but you also need to spend a lot less on waste heat disposal.
So is coal banned? No. Did some environmental regulations have an impact on just how bad of an idea coal is these days? Sure, but let's talk about the tradeoffs here, it's not a ban and framing it is a ban leads to bad solutions to real regulatory problems.