3x3 Rubik's Cube- All possible scramble generator with constrains

Hello all, I have searched over internet and have found nothing related to this topic. My idea is that for 3x3 rubiks cube, when we enter some finished color the program should automatically generate various possible cases such that essence of cubing should not be changed.

For example: If I enter such kind of color code, it should generate all possible combinations.

image_2021-06-16_222209

If you guys have any idea I would be great-full.

Thank you.