Your phrasing is unclear. If a list comprehension solution is what you're after, are you looking for something like this?
#Python 3.9.1
#Generating some random strings containing 'A', 'T', 'G', 'C' separated by a single 'S'.
import random
def strgen():
return(''.join(random.choices(['A', 'U', 'C', 'G'], k = random.choice([4,5,6,7,8]))))
seqs = [strgen()+'S'+strgen() for i in range(10)]
print(seqs)
# ['UCGCSCGACGAUA', 'CCUGGGSAGAA', 'GUGCSCCUUA', 'GUGUACASUUCUGUG', 'UCGUSGCCUG', 'GACASAACGC', 'UAGUSGUCCC', 'GCGUSGCGGCACA', 'UAGCUAUSCUGUAUA', 'AGUUSCCCGGCGU']
#Splitting using list comprehension.
seqs_split = [x.split('S') for x in seqs]
print(seqs_split)
# [['UCGC', 'CGACGAUA'], ['CCUGGG', 'AGAA'], ['GUGC', 'CCUUA'], ['GUGUACA', 'UUCUGUG'], ['UCGU', 'GCCUG'], ['GACA', 'AACGC'], ['UAGU', 'GUCCC'], ['GCGU', 'GCGGCACA'], ['UAGCUAU', 'CUGUAUA'], ['AGUU', 'CCCGGCGU']]
Modifying [x.split('S') for x in seqs]
to [x.split('S')[0] for x in seqs]
or [x.split('S')[1] for x in seqs]
will yield just the former or latter portions of the strings w.r.t. S
respectively.