Are these two parts compatible?

Hello Andrew.Mainland, welcome to the DigiKey TechForum.

Looking at these, they are technically compatible as they both have the same pitch, however the WM10525-ND is a 24 position FFC while the FFC2B35-50-G is a 50 position connector.

If you scroll to the bottom of the product page for WM10525-ND you will see associated connectors that are 24 position that should all work with the FFC you are looking at. There are 3 listed but only have one of them in stock, 5019512400 is the part number but I have linked it below for you.

Hopefully this was helpful but let us know if you have any questions.