The title is a variation of the following example.
Should there be a question-mark before semicolon? the part after semicolon is also part of the dwelling. should the punctuation be different?
He dwelled on what if the path had been different; could he have taken it?
Based on a comment below, is this correct?
I dwelled on "what if the path had been different? Could I have taken it?"