@elisabeth_p Next to what @claudius already wrote, I think there is not a generic name, but the search terms "pcb connector straight 3 pins, content spacing 2.5mm" should give reasonable results, e.g. this one:
https://www.reichelt.com/ie/en/shop/product/pcb_connector_straight_white_3-pin-14827
The picture is of a 10 pin variation, so don't let yourself be fooled 😀