Ansible remove characters from string. Test it - debug: var: associable_object_types.