They may be the caterpillars of the Scarce Bordered Straw moth. Could you pick them off and put them on a related plant such as an old potato plant or a nightshade plant or another tomato plant that has finished fruiting?