Hello Nav,
Local testing of your flex application uses Docker containers and actual Cloud Platform services, such as Google Cloud Datastore. By contrast, your app engine standard application is sandboxed in your local environment and uses a Datastore Emulator. In local testing, your flex and your standard applications do not access the same data store, so your scenario would stumble at this point.
More detail in this page on the migration of services from the Standard Environment to the Flexible Environment.
On the other hand, once deployed, you can use both environments in your application at the same time if you structure your application using the microservices architecture.