Looking to identify this part. I believe it to be a voltage regulator.
Welcome to the Digikey tech forum. I’m not able to ID what you have in the photo. Any chance you can send a few more pictures that are expanded to get a better idea of the circuit. They look to be marked D2 and D3 which would indicate some sort of diode.
I “think” these are Taitron BZX84C5V1 zener diodes, but don’t quote me on it. Data sheet is here.
I think the V7 and 31 are date codes, but apparently I’m not smart enough to figure them out.
Hopefully somebody else will chime in and either confirm or shoot down my thinking.
part is a common part that many manufactures make : Click Here