Export key in PEM format

Hello,

I have created and exported RSA public and private keys in binary format:

psa_set_key_usage_flags(&vmi_attributes,  PSA_KEY_USAGE_EXPORT | PSA_KEY_USAGE_ENCRYPT | PSA_KEY_USAGE_DECRYPT);
psa_set_key_algorithm(&attributes, PSA_ALG_RSA_PKCS1V15_CRYPT);
psa_set_key_type(&attributes, PSA_KEY_TYPE_RSA_KEY_PAIR_WRAPPED);
psa_set_key_bits(&attributes, RSA_2048_BIT_LENGTH);
psa_set_key_id(&attributes, KEY_ID);
psa_set_key_lifetime(&attributes, PSA_KEY_LIFETIME_PERSISTENT);
...
psa_status = psa_generate_key(&attributes, &key_handle);
...
psa_status =  psa_export_key(key_handle, key_payload, sizeof(key_payload), &key_length);
...

Got public key:
30 82 01 0A 02 82 01 01 00 F4 C1 AA A0 72 9C
A9 E1 26 59 B3 C0 02 F5 AD E6 5E F9 C3 79 93
C7 A9 C0 8C B2 6B A9 6E 4A 09 E6 FF 52 4E 67
79 DE A0 14 F5 83 5F 1C 80 56 24 C1 23 8B 09
DA BA D4 61 D9 83 EB 3E F3 A3 18 5F 38 AC 48
12 A0 37 51 96 DE CF 67 64 87 A1 9F 97 F3 03
AA DB 21 14 1B 10 F5 4F F0 78 69 9B E4 5C 62
D8 95 B3 C5 30 E6 1E 1C 20 96 22 4F C8 D6 0C
51 DF 9C 31 9C E8 A3 DE C4 DB B4 A1 5A 0E A5
FC FB 2B 8B 1E 9E 33 4C F8 CB DE 34 CD 32 5F
26 58 61 8A D6 BF 82 D0 4A EC C1 4F 64 B0 14
2E 6B 2A 56 F8 72 0E 75 48 05 78 AC FC FB FB
E9 3D E3 E9 22 E3 33 00 35 F6 EE F9 6A 73 83
F5 3E 15 5F 6C 1A 69 12 D3 91 0E CA 32 E9 AC
5C 13 43 8B 85 71 68 0C 62 58 E6 72 FB 27 8D
B0 C1 A6 42 5E A2 A0 AF 3A 4C 18 CC 32 56 1F
0E 3C C0 CA 89 93 62 92 F8 A7 D2 31 A7 12 54
01 E8 4A DB E5 BB 5A FC 3F F5 02 03 01 00 01

I have concerted it to Base64:
MIIBCgKCAQEA9MGqoHKcqeEmWbPAAvWt5l75w3mTx6nAjLJrqW5KCeb/Uk5ned6gFPWDXxyAViTBI4sJ2rrUYdmD6z7zoxhfOKxIEqA3UZbez2dkh6Gfl/MDqtshFBsQ9U/weGmb5Fxi2JWzxTDmHhwgliJPyNYMUd+cMZzoo97E27ShWg6l/Psrix6eM0z4y940zTJfJlhhita/gtBK7MFPZLAULmsqVvhyDnVIBXis/Pv76T3j6SLjMwA19u75anOD9T4VX2waaRLTkQ7KMumsXBNDi4VxaAxiWOZy+yeNsMGmQl6ioK86TBjMMlYfDjzAyomTYpL4p9IxpxJUAehK2+W7Wvw/9QIDAQAB

I also added lines at the top and bottom of Base64 key:

-----BEGIN RSA PUBLIC KEY-----
-----END RSA PUBLIC KEY-----

I used command in linux to show key:

openssl rsa -in pub.pem

Got error:

139691745153664:error:09091064:PEM routines:PEM_read_bio_ex:bad base64 decode:../crypto/pem/pem_lib.c:929:

What is wrong with my key and how to get key in PEM format?