Q:

Parenthesis and apostrophes

If there is a noun, then parenthesis or a comma, where should a 's go? For example:

The dog (who was very big)'s ears perked up.

or

The dog's (who was very big) ears perked up.

or

The dog's, who was very big, ears perked up.

or maybe just:

The very big dog's ears perked up.

A:

Your first one is questionable.
Your second two are justifiable, but awkward. They're probably the closest thing to an answer to the question of "what is the correct way to use a parenthetical clause about a subject while using the subject in the genitive?" but they're still awkward.
Your last does the best by rephrasing to make the issue go away.
So too would:

The dog's ears perked up.

In-between those two ways of avoiding the issue entirely would be:

The dog's ears (he was very big) perked up.
The dog's ears (and he was very big) perked up.
The dog's ears perked up. He was very big.

