(?ms)applies the following effective flags to the remainder of the pattern: gxms m modifier: multiline. Causes ^ and $ to match the start and end of each line, not only the start and end of the string
s modifier: single line. Allows a dot to match line terminators
IDthe literal text ID (case sensitive) \s+a Unicode whitespace character, repeated at least once
.*?any Unicode character, repeated any number of times
^start of line
ACthe literal text AC (case sensitive) \s+a Unicode whitespace character, repeated at least once
\w+a Unicode word character, repeated at least once
;the literal ; (5910 / 738 / 3B16)
.*?any Unicode character, repeated any number of times
^start of line
OXthe literal text OX (case sensitive) \s+a Unicode whitespace character, repeated at least once
NCBI_TaxID=the literal text NCBI_TaxID= (case sensitive) \d+a Unicode decimal digit, repeated at least once
.*?any Unicode character, repeated any number of times
Comment: how to optionally capture group ^FT\s+VAR_SEQ.*?\/FTId=\w+\.
.*?any Unicode character, repeated any number of times
^start of line
\s{5}a Unicode whitespace character, repeated exactly 5 times
.*?any Unicode character, repeated any number of times
g modifier: global. Finds all matches instead of stopping after the first
x modifier: extended. Ignores unescaped whitespace and comments outside character classes