how to search some text in line using python regular expression? : i want to search some text in line.

for example,
line is `{'id: 'id-::blabla1::blabal2-A'}`
or `{'id: 'id-::blabla3::blabal4-B'}`
or `{'id: 'id-::blabla5::blabal6-c'}`

i want to find this text, A or B or C

how to set regular expression in python