SPLIT_PART
Splits a string by a separator and returns the part with the number you need.
Syntax
SPLIT_PART(<text>, <separator>, <part number>)
Cuts the text into pieces at the separator and returns the piece with the given number, counting from 1. A negative number counts from the end: -1 is the last part. Handy for text with a predictable structure: the domain of an email, the country code of a phone number, part of a path.