Use Regex From Sample Generator without a complicated workflow.
Generate starter regular expression patterns from sample text and selected matching rules. This registration is prepared for a browser-side JavaScript UI, so no Python/API processing is required when the UI is implemented.