Hello and welcome to the forum.
Your mechanic is quite likely correct. This is a well known issue which as affected many thousands of 500's and is a very common failure.
It's possible to open the boot manually from inside the car (you'll need to fold the rear seat backs down) using the emergency boot release; full details on how to do this are in your car's handbook.
IMPORTANT: Before doing this, first open the bonnet and disconnect the battery negative terminal quick release - again, the handbook tells you how to do this
. If the wiring
is damaged, opening the boot with the battery connected might cause a stray live feed where it's not wanted, which could destroy a number of different electronic modules, none of which are cheap or easily repaired. You'll need to reset the clock afterwards, but everything else, including the
radio code, will be preserved in non-volatile memory.
If it is the common hatchback wiring fault, it needs to be patched using extra flexible cable; standard automotive cable will not provide a lasting repair. Indeed, on a 2012 car, it's quite likely it's been repaired previously, and the repair has failed again. There are a lot of used cars out there with poorly executed wiring repairs.
Unless you're planning to fix this yourself (and we'll help you if you do), I'd suggest you take the car to a specialist auto electrician who's dealt with this fault on a Fiat 500 before. Given how common this issue is, finding such a person may not be as hard as you might think. I'd avoid going anywhere near a franchised dealer; others have reported their charges for this kind of work to be considerable.
I'd also suggest you don't ignore this. The next stage in the failure is that the dashboard will light up like a christmas tree, and the repair may then require additional components to be replaced.