I saw a KFC tomato ketchup pot in the street full of Lasius niger, so I offered some to my Myrmica rubra, they loved it, although rubra seem to want to eat everything anyway
Ants eat almost everything, they are the cleaners of the bottom layer. If everything is healthy for them that is another case. Don't think ketchup will harm them but be ware of what you try out.