Clicking noise when shifting gears. 2023 sport

Hey everyone, I just picked up a used 2033 Crosstrek Sport 6MT.

I drove it home from a dealership about 600 km away yesterday, and everything seemed fine. However, this morning, I noticed a clicking sound coming from the glove box area whenever I shift gears. The noise only happens when the car is running.

Any idea what could be causing this?