Since the highly infectious Delta variant now rules the roost, folks should grind up the beans into a fine dry powder and inhale the powder through the nasal cavities.
But seriously penicillin being discovered by observation of the effects of a mold on a lab specimen of bacteria is simply one of many medicines being serendipitously discovered from nature.
How about castor beans? :)