It used to be.... look up "vin mariani" sometimes. Cocaine is illegal in the USA largely why a lot of other drugs are illegal: they aren't profitable for the right folks.
If alcohol / caffeine were discovered TODAY neither would be approved by the FDA for usage in products. But because both are intertwined with USA culture in a way neither cannabis or cocaine is, the former two are allowed (and even glorified) while the latter two are forbidden. It has nothing to do with harm reduction and everything to do with corporate profits.
Aside from Mr. Robot, almost every show that features software or computers completely butchers the details. My favorite offender? Mythic Quest. The main cast supposedly runs a massive MMORPG, yet their day-to-day activities have almost nothing to do with how game development or even basic software work actually functions.
It is like if ER was about hospital staff moving random boxes labeled "coils" back and forth while claiming to perform life-saving surgery. That is how far off it feels.
What really gets me is that Mr. Robot proved it is possible to do it right. If you treat the subject matter with respect, you can absolutely make something compelling and realistic. But since it is all just "nerd stuff" to most writers, and none of them are C++ goblins, we get tech scenes written by people who probably think JSON is a fitness drink.