I want to know if there is a formula to extract a complete string containing 'xxx' between two spaces.
For example:
use:
=ARRAYFORMULA(IFNA(REGEXEXTRACT(A1:A; "\[\S*xxx\S*\]")))