Yes, the Query returns a list, so you need to use the index of the element you need:
${idUsername[0]}
Or use other convertion keyword, (maybe from BuiltIn, Collections or String).
This should also work:
${queried_name}= Set Variable ${idUsername[0]}