Understanding In-Context Learning for Nonlinear Regression with Transformers: Attention as Featurizer — ThinkLLM