Adding on to the other answer here: https://stackoverflow.com/a/74416040/9889773
I used waitForSelector to solve this for myself. i.e:
waitForSelector
await page.waitForSelector('input#email[required]:invalid')
And using :valid after filling in valid input.
:valid