Cosmological constraints in extended parameter space from the Planck 2018 Legacy release