Nested Construction of Polar Codes via Transformers