Help - transform .keys() output with regex_replace

Hello

I’am using the .keys function to get the key name out of a dict.

{{ item.keys() }}
which output:

["MyKeysName"]

Now, I’am trying to remove the [" and "] so that only MyKeysName is left.
I have been looking at the regex_replace filter but not being an expert at regex I’am having trouble getting it to work.
Is regex_replace filter the best option here or is there another recommended way?
Any tips on what the regex should look like?

[a-zA-Z]+ should allow me to extract only the characters leaving the and " out correct?

{{ item.keys()|regex_replace('^[a-zA-Z]+$','\\1') }}

Running Ansible 2.2.0
Any help or guidance is appreciated.

Thanks

Just realized my mistake…
This is a list so a simple |join(’ ') did the trick…

`
{{ item.keys()|join(’ ') }}

`

-Nico