In other words, your ex-wife needs to take out the insurance company's money first, and then negotiate with her how to implement the terms of the agreement.
The insurance law stipulates that insurance income has judicial immunity. Not included in the division of property. Of course, whether the parties are willing to give it afterwards is another matter. Whether your agreement is valid or not depends on how you write it literally. If it conflicts with judicial immunity, you will definitely not get the money.