The foam used for your expansion joint should already be scored to allow easy removal of the top 1/2" (at least mine was). But then again, if your builder was trying to save every penny, they may not have used expansion joint material made for pool installation.
I simply pulled mine out (the top scored section, that is) and used Deck-o-Seal to fill in the joint. It's expensive, but specifically made for pool use. You mix it and apply with a squeeze-type bottle. It's liquid and self-leveling, but very viscous. I'm sure other stuff (same compound) would work equally well.
Note that my deck was poured in the fall and I installed the Deck-o-seal the next fall after the deck had gone through one winter of freezing and heaving (recommended). It heaved quite a bit (over 1/2") but returned to normal. I still get quite a bit of heave and that has broken the bond between the deck-o-seal and the coping, but so far the deck has returned to normal height every year.

