find functions f(x) and g(x) so that f(g(x))= sqrt(tan(3x^2 - 7))

Would this work???

g(x)= 3x^2 -7

f(x)= sqrt(tan(x))

looks ok to me