Some companies do provide a technical track in which you can become a Principal Engineer with no management responsibility. But if you have experience in solving problems, you may be good as a mentor/coach to other devs.
The longer term solution to this problem may be technical consulting.