I thought that the main issue with space mining would be that it's way too expensive to go into space and perform the necessary work, which makes the operation a waste of money. However, there's actually a bigger problem:
according to NASA, we're not there yet on a technological level. There is research and there is interest in this idea, but the tech just doesn't exist. Another thing that needs to be developed is
a legal framework to establish the ownership of things mined in space.
Considering financial, technological, and legal obstacles, I think we shouldn't worry about the impact of space mining in the near future.
You are a little mistaken. Technologies appear relatively quickly as soon as there is a demand for them. The main thing is that humanity has already reached the level of technical development when it can develop technologies for the extraction of minerals on other space objects. Of course, we are not talking about the next decades, although this is quite possible. Look how technology has advanced over the past half century.
Regarding the legal framework for the extraction of natural resources in space, the current methodology of private law in civil legal relations, the basis of which has existed since the so-called “Roman law”, which is already more than two thousand years old, but to this day this law has not changed significantly at all.