What happens if I get divorced in CA but got married in Mexico under "separate property"?

Getting Started

We got married in Mexico, and in Mexico, when you get married, you get to choose whether communal property or separate property. We both chose separate property. We live in Mexico for a few years, and then I got her the green card and moved to the U.S. If we where to get divorced now in CA, will the "separate property" option of our marriage certificate be valid in California? I found a few articles where it has happened. If no, would it be better to get divorced in Mexico?

https://www.mcclure-lawgroup.com/blog/mexican-premarital-agreement-found-valid-and-enforceable-in-texas/

https://law.justia.com/cases/california/court-of-appeal/2d/194/782.html

Here is the translated section of the marriage application that covers it:

"C. _____, Consul of Mexico in Calexico, California, United States of America acting as Civil Registry Officer. P r e s e n t e.- The undersigned, with the general ones expressed in the marriage application that we opportunely present, before you respectfully expose: That in accordance with the provisions of section V of article 98 of the Federal Civil Code, in force, we come to present the following agreement, which concerns future assets for not having them present, under the following bases: I.- The marriage is contracted under the regime of separation of property. II.- There is no inventory of assets, nor specification of debts of the contracting parties, since both declare that they lack both. III.- Each spouse will retain the administration of the assets that they acquire in the future and will also be their exclusive property, the fruits and shares thereof. IV.- The assets that the spouses acquire in common or gratuitously, will be administered by _____"

Any thoughts?