Here, you can use a flat head screwdriver to pry up as shown. No need to worry about breaking the camera flex cable since it is broken. (If you are salvaging from another G2, you'll want to be careful, use a plastic spudger if desired, gently insert and lift. Once the module is tilted a bit, breaking the tape under, you can pull it out by hand.
You will want to keep the top of the camera clean of dust. Same with the back, inside of the camera cover. No dust, better photos. Use an electronics duster spray as needed - be gentle with the camera module.
Make sure the 4 flex cables clear the motherboard when reassembling. Gently align,then press down to click each in place.