How to extract data from two delimiter where 2nd delimiter is bit changing

Maybe Regex will help you for the extraction:

(?<=XB1-).*?(?=\d+[A-Z]-)