Write a function to replace all occurrences of spaces, commas, or dots with a colon in the given string by using regex.
import re
def fill_spaces(text):
  return (re.sub("[ ,.]", ":", text))
<s>[INST]<<SYS>>Given a task and its code, generate test cases for the code.<</SYS>>Write a function to replace all occurrences of spaces, commas, or dots with a colon in the given string by using regex.
import re
def fill_spaces(text):
  return (re.sub("[ ,.]", ":", text))[/INST]assert fill_spaces('Boult Curve Wireless Neckband') == 'Boult:Curve:Wireless:Neckband'
assert fill_spaces('Stereo Sound Sweatproof') == 'Stereo:Sound:Sweatproof'
assert fill_spaces('Probass Curve Audio') == 'Probass:Curve:Audio'</s>