I’m not sure about if tomatoes are toxic. I know the leaves and green parts are. I like to err on the side of safety so would say not to use them as a gutload. I have no idea how long roaches keep food or possible food toxins in their systems.
@Motherlode Chameleon most likely can answer your questions.