I got the same problem. I started having this problem when I was in university.
Over the span of about 4 years, I saw about 4 different doctors and 2 dermatologists.
Short to say, the condition is called angular cheilitis.
Like you, things like tomatoes will trigger this problem for me...