I'm looking at a teardown of Sennheiser Momentum wireless earbuds. It is a rigid-flex design that folds into the casing:

My question is about the flex that sticks out to the right in the picture above. Here is another picture with the part I’m wondering about circled in red:

When folded into the casing it would end up facing out toward the plastic.
The Earin M-2 wireless earbuds also have something similar:

What is it and what does it do?