The recording stops automatically when everyone leaves the meeting. An email with the recording link is sent to the meeting organizer and the person who started the recording.
https://support.google.com/meet/answer/9308681?hl=en&co=GENIE.Platform%3DDesktop