Use this in writing to introduce a question that's inconvenient for the reader. In spoken English, the phrase "I'm sorry, but..." can sound a little angry depending on how you say it. Instead, I usually just say something like:
I'm sorry. What was it you're asking about?