Tracing complex organic molecules (COMs) from ice to gas with JWST and ALMA