I have been pigeonholed, how can I solve it? I can program, write papers and research. I'm better at research, but due to the lack of programmers I've been assigned programming tasks in my current institution. Additionally, I have little evidence to support that claim in my CV, I am "good" now (and I have strong personal evidence), but I don't have a long track of publications to prove it (because, to be honest, I wasn't good before).

How can I prosper in research if my CV and the interests of my superiors point me in the opposite direction? Is there any escape?

PD: I was a PhD student in another institution, I'm close to finishing my PhD but I don't get any spare time from my current programming obligations in the new institution, where I am a postdoc.
It is clear from your recent questions that you feel exploited in your lab, and it is good that you want to do something about it.

However, first things first. What is your agreement with your current mentor / lab head / whoever? Essentially, what is your "job"? If you have been specifically hired to "help out with the programming", or something like that, it will be difficult to convince whoever is paying your salary that you now actually would like to do something different. Not impossible, but maybe also not easy.

On the other hand, if you have actually been hired to do research, but now end up being more of a scientific programmer because that's what the lab currently needs, it is time for a good one-on-one meeting with your lab head. You wrote in a comment that you do not foresee this going well, but I really see no way how you can change your situation without talking about it very explicitly to your lab head. It should be easy to see for most sane persons that not only your lab has needs, but you and your career have needs as well (and working as a scientific programmer can easily be a dead end for an academic career - no first-authored publications, no faculty job). Try to make a plan for a suitable compromise between you helping out the lab with your programming skills, will still being able to progress your own career. Should your lab head really not be willing to compromise at all, it may be time to move on.

Possible compromises could include:


Hiring an actual scientific programmer, perhaps with funding that you help acquiring
You training some of the junior staff to do their own programming
You helping others in their programming problems, but ultimately let them do the majority of it themselves
You supervising some undergrad or master students that can help out with programming tasks
etc.



  that they appreciate more (because they are their own PhD students and now postdocs, it's emotionally logical, I'd say)


That's not logical, that's BS. A lab where people "coming from the outside" are valued less than those that "have always been there" is a terrible, toxic environment.