I don't think that could be fixed. I would recommend replacing it.
Here is the part number 996 563 401 00
There are plenty of places online selling it.
This is the best price I've found so far.
https://www.delawareporscheparts.com/oem-parts/porsche-convertible-top-latch-99656340100?srsltid=AfmBOoqU7VYuNHvVQvLx6iFDbyr8JZ efUfg6DoRaCAzo2f9og5Xosbj_