> Google did also just pay $2.5B to license Windsurf in perpetuity

Could there have been a clause that made this invalid in case of acquisition?

IANAL but you'd have to be pretty dumb to include that clause.