I can’t remember any case where a certain technology was banned and it was then gone forever. On the other hand, there were many cases (mainly in totalitarian countries), where similar attempts were made, for example the telegram ban in Iran & Russia or VPN bans in China. The result of those bans was not quite as expected (to phrase it mildly :) ).
The wheel can’t be uninvented. This is a property of the human brain and can be observed throughout the history.
But I mean we still can speculate, right? :) In case of a hypothetical bitcoin ban, I think there would emerge multiple forks of bitcoin plus a large underground community still running the original code. The government would be forced to physically go from house to house and search every single room to prevent people from running the nodes.
That said, to ban a technology like bitcoin, one would need to revert a whole bunch of underlying technological advances, starting with asymmetric cryptography and ending up with SSH, decades of Linux development and Tor.