Search for high-mass dilepton resonances using 139 fb−1 of pp collision data collected at sqrt(s) = 13 TeV with the ATLAS detector