That is one of the stranger truths about human evolution. Some of the traits helping people survive now are not purely modern at all. They are remnants of older branches of humanity, carried forward because they still work.
Evolution needs variation, inheritance, and reproduction. Those conditions have not disappeared.
Long-term health studies that follow multiple generations indicate that natural selection is still acting in modern populations. Certain traits are associated with having more children, and over time those traits become more common. Patterns in the data point toward earlier childbirth and later menopause, which together extend the reproductive window. Other trends suggest shifts in metabolism, including lower cholesterol and blood pressure.