More than 50 companies with ambitions to bring psychedelics to market have gone public since early 2020—a clear sign that mind-altering substances once relegated to college dorm rooms and underground nightclubs are gaining mainstream acceptance.