I lived in Lima from 2010-2015, so it's been a few years since we left. But I had the experience of living in places as diverse as Comas, kilometro 11 de Tupac Amaru, where you won't see a foreign face, to Los Olivos where my daughter was born, and finally to Chacarilla in Surco. I entered the country as a fairly naive but adventurous foreigner, shocked to see the poverty, crime and trash in the districts I initially frequented; and then left the affluent district of Chacarilla wisened and fluent in spanish language and peruvian culture. I haven't followed much news since then except for the major headlines, but my ex who still lives in el cono norte has had increasingly negative things to say about the safety, stability and general environment in the country since I left. (Mostly to say that I was right to take our daughter out of the country for more stability and better education, while everything goes to sh-t there, as he says.)
Based on my experience, I would encourage people to not go to Peru with any medium or long term plans, especially if there are children involved, unless it is for a brief visit and the exit flights are secured. I believe in real experiences that guide real advice, not fancy marketing campaigns or locals/expats with rose-colored biases.