Sounds like they indeed started to ferment. Those are the sour and probably slightly funky flavors your getting…But unlike intentional fermentation where you use something like salt to inhibit bad bacterial growth yours are just creating bacteria of all kinds. Throw it away.
If you ever want to try to ferment those in a safer way add 2-3% salt to them by weight.
I don’t know too much about fermented tomatoes. I would only give cooked fruits/veggies foods no more than 5 days in the refrigerator. Some people may say less time than that. You may be growing dangerous bacteria or mold. Basically, if it’s unappetizing after a few days, throw it out.