Transistor? Regulator? We need the PCB marking label at least
I think it's labeled as an IC, see the second picture, on the right side it has 'C157', 'IC14', 'C158' with the arrow pointing at the location, so I think that's labeling a capacitor, integrated circuit, capacitor.
I'm pretty comfortable that this is most likely a voltage regulator, absent any additional information.