JWST reveals the chemistry of disks around young stars where rocky planets