Post-pandemic world must learn from mistakes, pope says