This could be simplified like this:

`opening_delimiter, closing_delimiter = *delimiters`