如何用正则匹配headers?

想把这种headers(Host: www.baidu.com)匹配成为下面这种,奈何不熟悉正则,求大神帮忙
'Host': 'www.baidu.com',

如果你是用python的话,可以

headers ="Host:www.baidu.com"
new=re.sub('(.*?):(.*)',lambda m:"\'"+m.group(1)+"\':\'"+m.group(2)+"\',",headers)
print(new)

https://blog.csdn.net/xDragonx_/article/details/81369273