It is grammatically fine. “So” and “very” are both functioning in the example as adverbs, and adverbs can modify other adverbs (as well as verbs, adjectives, and whole clauses). ... Just as types of adjectives must appear in a certain order, so too must adverbs.