Benefits of Transformer: In-Context Learning in Linear Regression Tasks with Unstructured Data