Import an Android phone SMS into Google Sheets

I would like to import into Google Sheets filtered sms from my Android phone.

This could be done:

  • regularly (every 20 minutes),
  • event-based, when an SMS arrives and matches one or more regular expressions)

Is there a way to do it?