Life insurance can be a challenge, because it is not included in the probate system.
The default in life insurance has always been that the person who is listed as policy beneficiary at the time of death gets the benefits, even if it is an ex-spouse. Some states have written laws that say ex-spouses should be excluded and the U.S. Supreme Court recently ruled on such a state law, according to SCOTUSblog in "Court rejects constitutional challenge to state law on life insurance policies."
In the case, a Minnesota man took out a life insurance policy to benefit his then spouse and children. The couple divorced but the man did not change the policy beneficiary. Minnesota later passed a law removing ex-spouses from the policies.
The man passed away and the ex-spouse sued to get the benefits, on the grounds that the law was in violation of the Constitution's contract clause. The Supreme Court disagreed and upheld the law.
There are, of course, cases where someone might want an ex-spouse to receive benefits.
An estate planning attorney can advise you in creating an estate plan that fits your unique circumstances, including the laws of your state of residence and the impact on life insurance.
Reference: SCOTUSblog (June 11, 2018) "Court rejects constitutional challenge to state law on life insurance policies."