I think the following is true for $k \ge 3$, $$ \int_0^{\infty } (w+1)^{\frac{2}{k}-2} \, _2F_1\left(\frac{2}{k},\frac{1}{k};1+\frac{1}{k};-w\right) \, dw = \frac{\pi \cot \left(\frac{\pi }{k}\right)}{k-2} . $$ I have checked Table of Integrals, Series, and Products without any hit. Has anyone seen any formula that resembles the left hand side?
Edit: This came up in my research when I tried to show another integral is equals the RHS. I was able to transform the integral into the LHS and it looked promising. But eventually I used another proof. Anyway, it's still nice to see this direction also works.
Using the integral representation 15.6.6 $$ \, _2F_1\left(\frac{2}{k},\frac{1}{k};1+\frac{1}{k};-w\right)=\frac{\Gamma\left(1+1/k\right)}{2\pi i\Gamma\left(1/k\right)\Gamma\left(2/k\right)}\int_{-i\infty}^{i\infty}\frac{\Gamma\left(1/k+t\right)\Gamma\left(2/k+t\right )\Gamma\left(-t\right)}{\Gamma\left(1+1/k+t\right)}w^{t}dt, $$ where the contour of integration separates the poles of $\Gamma\left(1/k+t\right)\Gamma\left(2/k+t\right)$ from the poles of $\Gamma(-t)$, interchanging the order of integration and calculating the integral over $w$ $$ \int_0^{\infty } (w+1)^{\frac{2}{k}-2} w^tdw=B(t+1,1-2/k-t) $$ we get \begin{align} &\int_0^{\infty } (w+1)^{\frac{2}{k}-2} \, _2F_1\left(\frac{2}{k},\frac{1}{k};1+\frac{1}{k};-w\right) \, dw\\ &=\frac{1/k}{2\pi i\Gamma\left(2/k\right)}\int_{-i\infty}^{i\infty}\frac{\Gamma\left(1/k+t\right)\Gamma\left(2/k+t\right )\Gamma\left(-t\right)\Gamma(t+1)\Gamma\left(1-2/k-t\right)}{\Gamma\left(1+1/k+t\right)\Gamma\left(2-2/k\right)}dt\\ &=\frac{\sin \left(\frac{2 \pi }{k}\right)}{2i(k-2)} \int_{-i\infty}^{i\infty}\frac{dt}{t\sin (\pi/k-\pi t) \sin \left(\pi/k+\pi t\right)}. \end{align} The contour of integration here is so that the origin lies to the left. We see that the integrand is odd. Therefore if we choose the contour as $(-i\infty,-ir)\cup \Gamma_r\cup(ir,i\infty)$,$r>0$, where $\Gamma_r=\left\{|z|=r,\text{Re}~z>0\right\}$, the integrals along $(-i\infty,-ir)$ and $(ir,i\infty)$ cancel out. The integral along $\Gamma_r$ can be calculated in the limit $r\to +0$ and equals $$ \frac{\pi i}{\sin^2(\pi/k)}. $$ Thus we get $$ \frac{\sin \left(\frac{2 \pi }{k}\right)}{2i(k-2)} \cdot \frac{\pi i}{\sin^2(\pi/k)}= \frac{\pi \cot \left(\frac{\pi }{k}\right)}{k-2}. $$