Below is my code which get code(always in brackets, and always has 3 chars) from string :

```
raw_text='Spain (BCN)' #another examples: 'Italy (BGN)' , 'Germany (SXF)'
formatted_text=raw_text[raw_text.index('(')+1:len(raw_text)-1] # BCN,BGN,SFX

```

Can I write it simpler?