Consider Kepler's third law
The square of the orbital period $\tau$ of a planet is directly proportional to the cube of the semi-major axis of its orbit $a$.
$\frac{\tau^2}{a^3}=k$
The constant depends on both the mass of the star $M$ and the mass of the planet $m$.
$k=\frac{4\pi^2}{(M+m) \gamma}$
Where $\gamma$ is the universal gravitation constant.
Nevertheless (here is my doubt) considering the simple case of a circular orbit the following must hold.
$\frac{-\gamma M m}{r^2}=m \omega^2 r \implies \frac{\tau^2}{r^3}=k=\frac{4 \pi^2}{M \gamma}$
In this case $m$ is not involved in the expression of $k$. Is this just the consequence of an approximation in considering that the star $M$ is not moving and it is an inertial frame of reference? Or is there something different here? I'm a bit confused about it.