El Salvador showed you the way. Mexico is 5 years from lasting peace if the appropriate measures are taken.
Firstly, it probably wouldn't because that program only began a long time after the majority of the improvement had already happened: https://substackcdn.com/image/fetch/w_848,c_limit,f_webp,q_a... Bukele only began the mass incarceration after El Salvador had roughly the same number of homicides per person as the USA.
Secondly even if it really had been that program that produced the improvements, the gangs in El Salvador were very different to the gangs in Mexico. I found https://mattlakeman.org/2024/03/30/notes-on-el-salvador/ interesting for background on the gangs.