In particular let’s say that our function $f$ described in the title is $f = f(t)$. What would be $\frac{\text{d} f}{\text{d} t}(||f(t)||^2)$?
I’ve seen that when we deal with complex functions the modulus function isn’t analytic. What about functions whose domain is $\mathbb{R}$ but whose codomain is $\mathbb{C}$?
I'm not completely sure what you mean, but I think what you are looking for (well, the closest you can get in general) is the following equality.
$$ \frac{\mathrm{d}}{\mathrm{d}t}(\lVert f(t)\rVert^2)=2\lVert f(t)\rVert\frac{\mathrm{d}}{\mathrm{d}t}\lVert f(t)\rVert. $$
More generally, if $g$ is an arbitrary function, then $(g^2)'=2gg'$. In this case, $g(t)=\lVert f(t)\rVert$.