Probably exterior silicone sealant, surprised the window fitters didn't use some originally.
I would use masking tape either side of the joint (not too close to joint otherwise you will get a ridge when you remove it) apply a thick bead and use a smoothing tool for a nice neat bead.
Can anyone recommend a good DIY product for filling in these damp-inducing holes around my window?