The gemara in megillah 10b and Sanhedrin 39b make a diyuk from the word 'yasis', as opposed to 'yasos' in devarim 28,63 that Hashem makes our enemies happy when we sin but he himself is not happy.
In yeshaya 62,5, it says that Hashem will ''yasis'' on yerushalayim when mashiach comes. If we use the diyuk from above, this passuk seems to be saying that Hashem himself will not rejoice with yerushalayim. This seems very odd.
Is there a way to interpret this all such that the gemara's diyuk makes sense yet the passuk is not implying Hashem won't be happy about yerushalayim?