I have following python function which takes query which is string as an input but instead of just passing simple string I would like pass it as regex...how can I do it. here query is string which contains alphabet/number/symbol for example "MSEB-1020-MSK-01" and "MSEB-102*-MSK-**"
def function(string: str):
f_df = df_.loc[
df_["Company"].str.contains(string)
]