You can’t transfer Pokémon obtained in a Virtual Console game into a generation 6 game. However, you can transfer it to a gen 7 game, if you’d like. Also, you can still get a regular Riachu in Ultra Sun and Ultra Moon. All you have to do is use a Thunder Stone on Pikachu in Ultra Space.
If you think my answer was of satisfactory quality, and provided you with the information you needed, please consider clicking the green check mark on the top right hand corner. Thank you.