You don't need regex for this at all. A list comprehension with any
will suffice
>>> subs = ['ra', 'dec', 'lat']
>>> strings = ["ra", "dec", "ra-error", "dec-error", "glat", "glon", "flux", "l", "b"]
>>> [s for s in strings if any(i in s for i in subs)]
['ra', 'dec', 'ra-error', 'dec-error', 'glat']
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…