There are many species of Forficula falling under the common name "earwig," and some of them are relatively common pantry pests. However, the common (or European) earwig (F. auricularia) is primarily an outdoor insect that is only occasionally found indoors. When you find them indoors, it is usually in dark, moist areas, such as beneath piles of newspaper or cardboard boxes. They may also hitchhike in on potted houseplants that spend the summer outdoors. But the common earwig does not deliberately seek out indoor environments to feed or overwinter. If you notice such insects indoors in substantial numbers, it more likely a different, similar-looking species of earwig.