Chemical sleuthing unravels possible path to the formation of life’s building blocks in space