I let myself, two entities (I used villagers, one was renamed,) and a virtual name have an objective "test" and join in the same team "test."
Then I executed the commands below:
/team option test prefix ["Hello",{"text":", ","color":"gold"}]
/team option test suffix [" ",{"selector":"@p","italic":"true"},{"score":{"name":"Virtual_Name","objective":"test"}}]
After that, "score" tags didn't work at all, and "selector" tags did as "text" tags.
By the way, this bug does on a item name.