OAuth2 for gmail/google workspace

Apparently, starting from 15th of march this year, app passwords are starting to be removed, so there is going to be a flood of same or similar questions.

I have found recent and similar discussion (which is not resolved):