What you are planning sounds like what is commonly called a Short WheelBase (SWB) recumbent, with the seat position being high up also sometimes called a Highracer. Those terms may help you search out more information on how others have done this easily enough.
If you look in the older parts of my Electricle blog, you'll find the ReCycle, which was a Lowracer but still with pedals over the wheel to keep it from being quite as long as it otherwise would be (like CrazyBike2 is). There's some stuff about how I started to work out a folding boom for the pedals, extendable so I could adjust it for my leg length.
One thing to note is that on a normal-height bike, being seated leaning back a bit with your legs up at or above the level of your hips is going to be a much higher center of gravity (COG) and will take some time to learn to ride it. Having the electric to help you start up will be a tremendous advantage, as otherwise it can be difficult to get such a bike started from a stop, as you cannot just stand on the pedals to do it as on a regular bike (as yours was before).
This is one of the main reasons I built CrazyBike2 in the compromise position of forward but low-down pedals, and a semi-recumbent seat farther back partly over the wheel, with a much longer forward section to ensure the tire cleared my toes during pedalling and turning.

The whole bike is more stable at startups than if I had my feet up high over the wheel, though it has a significantly larger turning radius at a reduced turning speed.
It also required using "remote steering", as the handlebars' steering point was now going to be so far forward as to require handlebars over two feet back from that point; impractical and uncomfortable to use. Remote steering lets me use normal bars and comfortable usage, and also lets me change the ratio of handlebar movement to steering movement, which you can't do if they're directly attached like a normal bike.

So if you are able/willing to significantly stretch the bike frame, you could go something along the CrazyBike2 design, or other similar ones out there. If you prefer the short wheelbase (SWB) of your regular bike, there are many models to emulate of that type, with many solutions to get the chain back from the pedals to the rear wheel.
There are even solutions to run the chain to the *front* wheel, so you could have it be entirely independent drivetrain from the motor, if you choose.