How to extract numbers from string using regular expression in Python except when within brackets

Published --