A quick check here, https://www.portfoliovisualizer.com/backtest-portfolio, with JPXN between 2002-2021 investing a static amount monthly and reinvesting dividends suggests you would have doubled your money over the period.
Bad compared to US growth to be sure. You're right that Japan is a great example of how this strategy doesn't work as well for people locked in to stagnating economies.