Gday grimey
Drill it out as Scott said, use a smaller drill bit than the brick space and run it around to clear. Even a small chisel could get it out. You could try mrtho or turps, something that will eat the foam. i don't think that product from masters will be much help, just make a lot...